/* =========================================================
   Yash Gandhi — Premium layer (all pages)
   Colour Lab · Formats · Clapper CTA · Page curtain ·
   Film-strip divider · Back-to-top ring · Play cursor
========================================================= */

.yg-sec{ position: relative; overflow: hidden; }
.yg-sec::before{
    content: "";
    position: absolute; left: 50%; top: 10%;
    width: 900px; height: 500px; margin-left: -450px;
    background: radial-gradient(ellipse, rgba(255,71,28,.10), rgba(255,71,28,0) 65%);
    pointer-events: none;
}
#yg-ring.is-play{
    width: 92px; height: 92px; margin: -46px 0 0 -46px;
    background: var(--yg-orange, #ff471c);
    border-color: var(--yg-orange, #ff471c);
    display: flex; align-items: center; justify-content: center;
    font: 800 12px/1 "Manrope", sans-serif;
    letter-spacing: .16em; text-transform: uppercase; color: #fff;
}

/* =========================================================
   A) COLOUR LAB
========================================================= */
.yg-lab{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    position: relative;
}
.yg-lab-stage{
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 40px 80px -40px rgba(0,0,0,.95);
    aspect-ratio: 1410 / 572;
    background: #000;
    cursor: ew-resize;
    touch-action: pan-y;
    user-select: none; -webkit-user-select: none;
    --pos: 50%;
}
.yg-lab-layer{ position: absolute; inset: 0; }
.yg-lab-layer img{
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}
.yg-lab-graded img{ filter: var(--grade, none); }
.yg-lab-tint{ position: absolute; inset: 0; mix-blend-mode: overlay; opacity: 0; pointer-events: none; }
.yg-lab-vig{
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,.9) 100%);
    opacity: 0;
}
.yg-lab-raw{
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.yg-lab-raw img{ filter: saturate(.28) contrast(.68) brightness(1.12); }
.yg-lab-raw::after{
    content: ""; position: absolute; inset: 0;
    background: rgba(120,140,150,.10);
}
.yg-lab-tag{
    position: absolute; top: 16px; z-index: 4;
    padding: 8px 12px; border-radius: 8px;
    font: 700 11px/1 ui-monospace, "SF Mono", Menlo, monospace;
    letter-spacing: .14em;
    background: rgba(10,10,10,.72);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}
.yg-lab-tag.l{ left: 16px; }
.yg-lab-tag.r{ right: 16px; color: var(--yg-orange, #ff471c); }
.yg-lab-handle{
    position: absolute; top: 0; bottom: 0;
    left: var(--pos);
    width: 0; z-index: 5; pointer-events: none;
}
.yg-lab-handle::before{
    content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
    background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.8);
}
.yg-lab-handle i{
    position: absolute; top: 50%; left: -23px;
    width: 46px; height: 46px; margin-top: -23px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.yg-lab-handle i::before, .yg-lab-handle i::after{
    content: ""; position: absolute; top: 50%; margin-top: -6px;
    border: 6px solid transparent;
}
.yg-lab-handle i::before{ left: 9px; border-right-color: #111; border-left-width: 0; }
.yg-lab-handle i::after{ right: 9px; border-left-color: #111; border-right-width: 0; }
.yg-lab-hint{
    position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
    z-index: 4; pointer-events: none;
    padding: 9px 16px; border-radius: 999px;
    font: 700 11px/1 "Manrope", sans-serif; letter-spacing: .16em; text-transform: uppercase;
    background: rgba(10,10,10,.72); color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: opacity .4s ease;
}
.yg-lab-stage.is-touched .yg-lab-hint{ opacity: 0; }

.yg-lab-panel{
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: linear-gradient(180deg, #171717, #0e0e0e);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    padding: 18px 18px 20px;
    display: flex; flex-direction: column; gap: 16px;
}
.yg-lab-panel header{
    display: flex; align-items: center; justify-content: space-between;
    font: 700 12px/1 "Manrope", sans-serif; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.7);
}
.yg-lab-panel header button{
    font: 700 11px/1 "Manrope", sans-serif; letter-spacing: .12em; text-transform: uppercase;
    color: var(--yg-orange, #ff471c);
    background: transparent; border: 1px solid rgba(255,71,28,.4);
    border-radius: 999px; padding: 7px 12px; cursor: pointer;
    transition: background .25s ease, color .25s ease;
}
.yg-lab-panel header button:hover{ background: var(--yg-orange, #ff471c); color: #fff; }
.yg-lab-presets{ display: flex; flex-wrap: wrap; gap: 8px; }
.yg-lab-presets button{
    font: 700 12px/1 "Manrope", sans-serif; letter-spacing: .06em;
    padding: 9px 13px; border-radius: 999px;
    color: #ddd; background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.14);
    cursor: pointer; transition: all .25s ease;
}
.yg-lab-presets button:hover{ border-color: var(--yg-orange, #ff471c); color: #fff; }
.yg-lab-presets button.is-on{ background: var(--yg-orange, #ff471c); border-color: var(--yg-orange, #ff471c); color: #fff; }
.yg-lab-row{ display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; }
.yg-lab-row label{
    font: 600 12px/1 "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.65);
}
.yg-lab-row output{
    font: 600 12px/1 ui-monospace, "SF Mono", Menlo, monospace;
    color: var(--yg-orange, #ff471c); min-width: 34px; text-align: right;
    font-variant-numeric: tabular-nums;
}
.yg-lab-row input[type=range]{
    grid-column: 1 / -1;
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px; border-radius: 4px; outline: none; cursor: pointer;
    background: linear-gradient(90deg, var(--yg-orange, #ff471c) var(--fill, 50%), rgba(255,255,255,.14) var(--fill, 50%));
}
.yg-lab-row input[type=range]::-webkit-slider-thumb{
    -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(255,71,28,.28);
    transition: box-shadow .2s ease;
}
.yg-lab-row input[type=range]::-moz-range-thumb{
    width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0;
    box-shadow: 0 0 0 4px rgba(255,71,28,.28);
}
.yg-lab-row input[type=range]:active::-webkit-slider-thumb{ box-shadow: 0 0 0 7px rgba(255,71,28,.35); }
.yg-lab-scope{
    display: block; width: 100%; height: 74px;
    border-radius: 10px; background: #070707;
    border: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 991px){
    .yg-lab{ grid-template-columns: 1fr; }
    .yg-lab-stage{ aspect-ratio: 16 / 10; }
    .yg-lab-stage .yg-lab-layer img{ object-position: 55% 50%; }
}

/* =========================================================
   B) FORMATS
========================================================= */
.yg-fmt{
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
}
.yg-fmt-tabs{ display: flex; flex-direction: column; gap: 12px; }
.yg-fmt-tab{
    position: relative; overflow: hidden;
    text-align: left; cursor: pointer;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.03);
    color: #fff;
    transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.yg-fmt-tab:hover{ border-color: rgba(255,71,28,.6); }
.yg-fmt-tab b{
    display: block; font: 800 26px/1 "Manrope", sans-serif; letter-spacing: -.01em; margin-bottom: 6px;
}
.yg-fmt-tab span{
    font: 600 12px/1.3 "Manrope", sans-serif; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.55);
}
.yg-fmt-tab::after{
    content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    background: var(--yg-orange, #ff471c);
    transform: scaleX(0); transform-origin: 0 50%;
}
.yg-fmt-tab.is-on{
    background: linear-gradient(135deg, rgba(255,71,28,.18), rgba(255,71,28,.04));
    border-color: var(--yg-orange, #ff471c);
}
.yg-fmt-tab.is-on::after{ animation: yg-fmt-bar var(--dur, 5s) linear forwards; }
.yg-fmt.is-paused .yg-fmt-tab.is-on::after{ animation: none; transform: scaleX(1); }
@keyframes yg-fmt-bar{ to{ transform: scaleX(1); } }

.yg-fmt-stage{
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 26px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,71,28,.12), transparent 55%),
        linear-gradient(180deg, #151515, #0d0d0d);
    padding: 26px;
    min-height: 470px;
    overflow: hidden;
}
.yg-fmt-screen{
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 420px;
}
.yg-fmt-frame{
    position: relative;
    width: 236px; height: 420px;
    border-radius: 22px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.28);
    box-shadow: 0 30px 70px -20px rgba(0,0,0,.9), 0 0 0 8px rgba(255,255,255,.03), 0 0 60px -10px rgba(255,71,28,.35);
    transition: width .8s cubic-bezier(.16,1,.3,1), height .8s cubic-bezier(.16,1,.3,1), border-radius .8s cubic-bezier(.16,1,.3,1);
    background: #000;
}
.yg-fmt-frame img{
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 30%;
    transition: object-position .8s cubic-bezier(.16,1,.3,1), transform 6s ease-out;
    transform: scale(1.08);
}
.yg-fmt-frame.kb img{ transform: scale(1.18); }
.yg-fmt-frame .safe{
    position: absolute; inset: 7% 7%;
    border: 1px dashed rgba(255,255,255,.35);
    border-radius: 10px; pointer-events: none;
}
.yg-fmt-frame .ratio{
    position: absolute; left: 12px; top: 12px;
    font: 700 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em;
    padding: 6px 9px; border-radius: 6px;
    background: rgba(10,10,10,.75); color: #fff;
}
.yg-fmt-frame .rec{
    position: absolute; right: 12px; top: 14px;
    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;
}
.yg-fmt-frame .ui{
    position: absolute; right: 10px; bottom: 16%;
    display: flex; flex-direction: column; gap: 14px;
    transition: opacity .4s ease;
}
.yg-fmt-frame .ui i{ width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.85); opacity: .85; display: block; }
.yg-fmt-frame .cap{
    position: absolute; left: 0; right: 0; bottom: 8%;
    text-align: center; padding: 0 16px;
    font: 800 15px/1.2 "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .02em;
    color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.yg-fmt-frame .cap em{ font-style: normal; background: var(--yg-orange, #ff471c); padding: 1px 7px; border-radius: 4px; }
.yg-fmt-frame .bar{
    position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2);
}
.yg-fmt-frame .bar::after{
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
    background: var(--yg-orange, #ff471c);
    transform: scaleX(0); transform-origin: 0 50%;
    animation: yg-fmt-bar 6s linear infinite;
}
.yg-fmt-frame[data-r="169"] .ui, .yg-fmt-frame[data-r="11"] .ui{ opacity: 0; }

.yg-fmt-info{ display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.yg-fmt-info .k{
    font: 700 12px/1 "Manrope", sans-serif; letter-spacing: .18em; text-transform: uppercase;
    color: var(--yg-orange, #ff471c);
}
.yg-fmt-info h3{ font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.yg-fmt-info p{ color: var(--text, #b1b1b1); font-size: 16px; margin: 0; }
.yg-fmt-info ul{ list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.yg-fmt-info li{
    font: 600 12px/1 "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase;
    padding: 9px 13px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16); color: #ddd;
}
.yg-fmt-info > *{ transition: opacity .35s ease, translate .35s ease; }
.yg-fmt-info.is-swap > *{ opacity: 0; translate: 0 12px; }
@media (max-width: 1199px){
    .yg-fmt{ grid-template-columns: 1fr; }
    .yg-fmt-tabs{ flex-direction: row; }
    .yg-fmt-tab{ flex: 1; padding: 16px; }
    .yg-fmt-tab b{ font-size: 20px; }
}
@media (max-width: 767px){
    .yg-fmt-stage{ grid-template-columns: 1fr; padding: 18px; }
    .yg-fmt-screen{ min-height: 340px; }
    .yg-fmt-tab span{ display: none; }
}

/* =========================================================
   C) CLAPPERBOARD CTA
========================================================= */
.yg-clap{
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    filter: drop-shadow(0 40px 60px rgba(0,0,0,.6));
}
.yg-clap-top{ position: relative; height: 72px; z-index: 2; }
.yg-clap-stick{
    position: absolute; left: 0; right: 0; height: 40px;
    border-radius: 10px 10px 0 0;
    background: repeating-linear-gradient(135deg, #f4f4f4 0 34px, #141414 34px 68px);
    border: 2px solid #f4f4f4;
}
.yg-clap-stick.base{ bottom: 0; border-radius: 0; }
.yg-clap-stick.arm{
    bottom: 34px;
    transform-origin: 0 100%;
    transform: rotate(-16deg);
    transition: transform .16s cubic-bezier(.6,0,1,.4);
}
.yg-clap.is-clap .yg-clap-stick.arm{ transform: rotate(0deg); }
.yg-clap-flash{
    position: absolute; inset: -20px;
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.35), rgba(255,71,28,.12) 40%, transparent 70%);
    opacity: 0; pointer-events: none; z-index: 3;
}
.yg-clap.is-flash .yg-clap-flash{ animation: yg-flash .5s ease-out; }
@keyframes yg-flash{ 0%{ opacity: 1; } 100%{ opacity: 0; } }
.yg-clap-body{
    position: relative; z-index: 1;
    border: 2px solid #f4f4f4; border-top: 0;
    border-radius: 0 0 14px 14px;
    background: #101010;
    padding: 0;
    overflow: hidden;
}
.yg-clap-grid{
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.yg-clap-grid > div{
    padding: 14px 18px;
    border-right: 1px solid rgba(255,255,255,.35);
    border-bottom: 1px solid rgba(255,255,255,.35);
}
.yg-clap-grid > div:nth-child(4n){ border-right: 0; }
.yg-clap-grid small{
    display: block; font: 700 10px/1 ui-monospace, "SF Mono", Menlo, monospace;
    letter-spacing: .2em; color: rgba(255,255,255,.55); margin-bottom: 7px;
}
.yg-clap-grid b{ font: 800 20px/1.1 "Manrope", sans-serif; color: #fff; letter-spacing: .02em; }
.yg-clap-grid .w2{ grid-column: span 2; }
.yg-clap-main{
    display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
    padding: 36px 30px 40px;
}
.yg-clap-main h2{
    margin: 0; font-size: clamp(30px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.03em;
}
.yg-clap-main h2 em{ font-style: italic; color: var(--yg-orange, #ff471c); }
@media (max-width: 767px){
    .yg-clap-grid{ grid-template-columns: repeat(2, 1fr); }
    .yg-clap-grid > div:nth-child(4n){ border-right: 1px solid rgba(255,255,255,.35); }
    .yg-clap-grid > div:nth-child(2n){ border-right: 0; }
    .yg-clap-grid b{ font-size: 16px; }
    .yg-clap-main{ padding: 26px 20px 30px; }
}

/* =========================================================
   D) Page-transition curtain
========================================================= */
/* =========================================================
   E) Film-strip divider (above footer)
========================================================= */
.yg-filmstrip{
    position: relative;
    height: 74px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
}
.yg-filmstrip::before, .yg-filmstrip::after{
    content: ""; position: absolute; left: 0; right: -80px; height: 12px;
    background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.55) 14px 30px, transparent 30px 44px);
    -webkit-mask: linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0);
    animation: yg-strip 3.4s linear infinite;
    border-radius: 3px;
}
.yg-filmstrip::before{ top: 9px; }
.yg-filmstrip::after{ bottom: 9px; }
@keyframes yg-strip{ to{ transform: translateX(-44px); } }
.yg-filmstrip .frames{
    position: absolute; left: 0; right: 0; top: 26px; bottom: 26px;
    display: flex; gap: 8px; padding: 0 8px;
    white-space: nowrap;
}
.yg-filmstrip .frames span{
    flex: 1; min-width: 60px; border-radius: 3px;
    background: linear-gradient(135deg, rgba(255,71,28,.5), rgba(255,71,28,.08));
    opacity: .35; transition: opacity .3s ease;
    animation: yg-frame 4s ease-in-out infinite;
    animation-delay: calc(var(--n) * 160ms);
}
@keyframes yg-frame{ 0%,100%{ opacity: .18; } 50%{ opacity: .8; } }

/* =========================================================
   F) Back-to-top progress ring
========================================================= */
.yg-top{
    position: fixed; left: 24px; bottom: 24px; z-index: 9990;
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(16,16,16,.85);
    border: 0; cursor: pointer; color: #fff;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; translate: 0 20px; pointer-events: none;
    transition: opacity .4s ease, translate .4s cubic-bezier(.16,1,.3,1), background .3s ease;
}
.yg-top.is-on{ opacity: 1; translate: 0 0; pointer-events: auto; }
.yg-top:hover{ background: var(--yg-orange, #ff471c); }
.yg-top svg{ position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.yg-top circle{ fill: none; stroke-width: 2.5; }
.yg-top .t{ stroke: rgba(255,255,255,.15); }
.yg-top .p{ stroke: var(--yg-orange, #ff471c); stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; }
.yg-top:hover .p{ stroke: #fff; }
.yg-top i{ font-size: 16px; position: relative; }
@media (max-width: 575px){ .yg-top{ left: 14px; bottom: 14px; width: 46px; height: 46px; } }

@media (prefers-reduced-motion: reduce){
    .yg-filmstrip::before, .yg-filmstrip::after, .yg-filmstrip .frames span,
    .yg-fmt-frame .rec, .yg-fmt-frame .bar::after, .yg-fmt-tab.is-on::after{ animation: none !important; }
}
