/* ===========================================================================
   Yash Gandhi — HERO V7  ("Editing Suite" hero)
   A full-height, video-editing-first hero: timecode HUD, jump-cut word
   rotator, showreel button and a live NLE timeline strip with a moving
   playhead. Loads LAST so it can safely override every earlier layer.

   Everything here is namespaced under .yg-hero7 so no other section of the
   site is affected. Motion degrades gracefully (prefers-reduced-motion) and
   the layout is fluid from 320px up to 2560px.
=========================================================================== */

.yg-hero7{
    --h7-accent: #FF471C;
    --h7-accent-soft: rgba(255, 71, 28, .14);
    --h7-line: rgba(255, 255, 255, .10);
    --h7-line-hi: rgba(255, 255, 255, .20);
    --h7-dim: rgba(255, 255, 255, .58);
    --h7-panel: rgba(255, 255, 255, .03);
    --h7-ease: cubic-bezier(.22, 1, .36, 1);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(100px, 11vh, 124px) clamp(16px, 4vw, 70px) clamp(22px, 2.6vh, 34px);
    border-top: 1px solid var(--h7-line);
    border-bottom: 1px solid var(--h7-line);
    text-align: center;
}

/* ---------------------------------------------------------------------
   1) Ambient background — grid, glows, scanline, grain
--------------------------------------------------------------------- */
.yg-hero7-bg{ position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

.yg-hero7-bg .h7-grid{
    position: absolute; inset: -2px;
    background-image:
        linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(76% 62% at 50% 40%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(76% 62% at 50% 40%, #000 0%, transparent 78%);
    animation: h7GridDrift 26s linear infinite;
}
@keyframes h7GridDrift{ to{ background-position: 68px 68px, 68px 68px; } }

.yg-hero7-bg .h7-glow{ position: absolute; border-radius: 50%; filter: blur(10px); }
.yg-hero7-bg .h7-glow-a{
    width: min(1100px, 120vw); height: min(1100px, 120vw);
    top: -46%; left: 50%; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255,71,28,.20) 0%, rgba(255,71,28,.05) 42%, transparent 68%);
    animation: h7Breathe 9s ease-in-out infinite;
}
.yg-hero7-bg .h7-glow-b{
    width: min(760px, 95vw); height: min(760px, 95vw);
    bottom: -34%; right: -14%;
    background: radial-gradient(circle, rgba(90,140,255,.13) 0%, transparent 66%);
    animation: h7Breathe 12s ease-in-out infinite reverse;
}
@keyframes h7Breathe{
    0%, 100%{ transform: translateX(-50%) scale(1); opacity: .85; }
    50%     { transform: translateX(-50%) scale(1.1); opacity: 1; }
}
.yg-hero7-bg .h7-glow-b{ animation-name: h7BreatheB; }
@keyframes h7BreatheB{
    0%, 100%{ transform: scale(1); opacity: .7; }
    50%     { transform: scale(1.12); opacity: 1; }
}

/* soft horizontal "playback" scan sweeping down the hero */
.yg-hero7-bg .h7-scan{
    position: absolute; left: 0; right: 0; height: 240px; top: -240px;
    background: linear-gradient(to bottom, transparent, rgba(255,71,28,.07), transparent);
    animation: h7Scan 7.5s linear infinite;
}
@keyframes h7Scan{ to{ transform: translateY(calc(100svh + 240px)); } }

/* film grain */
.yg-hero7-bg .h7-grain{
    position: absolute; inset: -150%;
    opacity: .045;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: h7Grain .7s steps(3) infinite;
}
@keyframes h7Grain{
    0%{ transform: translate(0,0); }
    33%{ transform: translate(-3%, 2%); }
    66%{ transform: translate(2%, -3%); }
    100%{ transform: translate(0,0); }
}

/* ---------------------------------------------------------------------
   2) Layout shell
--------------------------------------------------------------------- */
.yg-hero7-inner{
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2.4vh, 28px);
}

/* entrance animation helper — visible by default, JS adds .h7-in to stagger */
.h7-up{
    opacity: 0;
    transform: translateY(26px);
    animation: h7Up .9s var(--h7-ease) forwards;
    animation-delay: var(--d, 0s);
}
@keyframes h7Up{ to{ opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   3) Status HUD (REC · timecode · format)
--------------------------------------------------------------------- */
.h7-status{
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(8px, 1.4vw, 16px);
    padding: 8px clamp(12px, 1.6vw, 20px);
    border: 1px solid var(--h7-line);
    border-radius: 100px;
    background: rgba(12,12,12,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: clamp(10px, 1.05vw, 12.5px);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--h7-dim);
    line-height: 1;
}
.h7-rec{ display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.h7-rec i{
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--h7-accent);
    box-shadow: 0 0 0 0 rgba(255,71,28,.6);
    animation: h7Rec 1.6s ease-out infinite;
}
@keyframes h7Rec{
    0%{ box-shadow: 0 0 0 0 rgba(255,71,28,.55); opacity: 1; }
    70%{ box-shadow: 0 0 0 10px rgba(255,71,28,0); opacity: .55; }
    100%{ box-shadow: 0 0 0 0 rgba(255,71,28,0); opacity: 1; }
}
.h7-tc{
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: #fff;
    letter-spacing: .08em;
}
.h7-dot{ width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.3); }
@media (max-width: 479px){ .h7-status .h7-opt{ display: none; } }

/* ---------------------------------------------------------------------
   4) Kicker + headline
--------------------------------------------------------------------- */
.h7-kicker{
    margin: 0;
    font-size: clamp(11px, 1.2vw, 14px);
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--h7-dim);
}
.h7-kicker b{ color: var(--h7-accent); font-weight: 600; }

.h7-title{
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3.65rem);
    line-height: 1.0;
    letter-spacing: -.028em;
    font-weight: 700;
    color: #fff;
    text-wrap: balance;
    max-width: 24ch;
}
.h7-title .h7-ln{ display: block; }

/* per-word reveal (JS wraps words in .h7-w > span) */
.h7-title .h7-w{ display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.h7-title .h7-w > span{
    display: inline-block;
    transform: translateY(105%);
    animation: h7WordUp .85s var(--h7-ease) forwards;
    animation-delay: var(--wd, 0s);
}
@keyframes h7WordUp{ to{ transform: none; } }

/* the accent word: a "selected clip" look with a scrub underline */
.h7-mark{
    color: var(--h7-accent);
    background-image: linear-gradient(var(--h7-accent), var(--h7-accent));
    background-repeat: no-repeat;
    background-position: 0 94%;
    background-size: 0% .06em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    animation: h7Scrub 5s var(--h7-ease) infinite;
    animation-delay: 1.2s;
}
@keyframes h7Scrub{
    0%       { background-size: 0% .06em; }
    30%, 68% { background-size: 100% .06em; }
    100%     { background-size: 0% .06em; }
}

/* ---- "Now cutting" ticker line ----------------------------------- */
.h7-now{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 9px 18px 9px 12px;
    border: 1px solid var(--h7-line);
    border-radius: 100px;
    background: rgba(255,255,255,.03);
    font-size: clamp(12px, 1.35vw, 16px);
    line-height: 1.2;
    max-width: 100%;
}
.h7-now-lbl{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: clamp(9.5px, 1vw, 11px);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--h7-dim);
    white-space: nowrap;
    padding-right: 12px;
    border-right: 1px solid var(--h7-line);
}
.h7-now-lbl i{
    width: 0; height: 0; flex: none;
    border-left: 7px solid var(--h7-accent);
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
    animation: h7Blink 1.8s ease-in-out infinite;
}
@keyframes h7Blink{ 0%,100%{ opacity: 1; } 50%{ opacity: .3; } }
@media (max-width: 400px){
    .h7-now{ gap: 9px; padding: 8px 14px 8px 10px; }
    .h7-now-lbl{ padding-right: 9px; }
}

/* ---- jump-cut word rotator -------------------------------------- */
.h7-rot{
    display: inline-grid;
    text-align: left;
    overflow: hidden;
    color: #fff;
    font-weight: 600;
    min-width: 0;
}
.h7-rot > span{
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(60%) skewY(4deg);
    transition: opacity .34s var(--h7-ease), transform .44s var(--h7-ease), filter .34s ease;
    filter: blur(6px);
    white-space: nowrap;
}
.h7-rot > span.is-on{
    opacity: 1;
    transform: none;
    filter: none;
}
.h7-rot > span.is-out{
    opacity: 0;
    transform: translateY(-60%) skewY(-4deg);
    filter: blur(6px);
}

/* ---------------------------------------------------------------------
   5) Sub copy
--------------------------------------------------------------------- */
.h7-sub{
    margin: 0;
    max-width: 74ch;
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.6;
    color: var(--h7-dim);
}
.h7-sub em{ color: #fff; font-style: normal; font-weight: 500; }

/* ---------------------------------------------------------------------
   6) Actions — showreel + buttons
--------------------------------------------------------------------- */
.h7-actions{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(12px, 1.6vw, 20px);
    margin-top: 4px;
}

.h7-reel{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 22px 8px 8px;
    border: 1px solid var(--h7-line-hi);
    border-radius: 100px;
    background: rgba(255,255,255,.04);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .35s ease, background-color .35s ease, transform .35s var(--h7-ease);
}
.h7-reel:hover{ border-color: var(--h7-accent); background: rgba(255,71,28,.10); transform: translateY(-2px); }
.h7-reel-thumb{
    position: relative;
    width: 48px; height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    background: #111;
}
.h7-reel-thumb img{ width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.h7-reel-thumb::after{
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
}
.h7-reel-play{
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: #fff; font-size: 13px;
}
.h7-reel-ping{
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px solid var(--h7-accent);
    animation: h7Ping 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes h7Ping{
    0%{ transform: scale(.85); opacity: .9; }
    100%{ transform: scale(1.5); opacity: 0; }
}
.h7-reel-txt{ display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; }
.h7-reel-txt b{ font-size: clamp(13px, 1.2vw, 15px); font-weight: 600; letter-spacing: .01em; }
.h7-reel-txt span{
    font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--h7-dim);
    font-variant-numeric: tabular-nums;
}

.h7-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: clamp(12px, 1.3vw, 15px) clamp(18px, 2vw, 27px);
    border-radius: 100px;
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 600;
    letter-spacing: .02em;
    border: 1px solid transparent;
    transition: transform .35s var(--h7-ease), background-color .35s ease, color .35s ease, border-color .35s ease;
    white-space: nowrap;
}
.h7-btn i{ font-size: .85em; transition: transform .35s var(--h7-ease); }
.h7-btn:hover i{ transform: translate(3px, -3px); }
.h7-btn--solid{ background: var(--h7-accent); color: #fff; }
.h7-btn--solid:hover{ background: #fff; color: #0b0b0b; transform: translateY(-2px); }
.h7-btn--ghost{ border-color: var(--h7-line-hi); color: #fff; }
.h7-btn--ghost:hover{ border-color: #fff; background: #fff; color: #0b0b0b; transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   7) Stats strip
--------------------------------------------------------------------- */
.h7-stats{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: clamp(14px, 3vw, 46px);
    margin-top: 2px;
}
.h7-stat{ display: flex; flex-direction: column; gap: 4px; min-width: 88px; }
.h7-stat b{
    font-size: clamp(1.3rem, 2.4vw, 1.95rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.h7-stat span{
    font-size: clamp(9.5px, 1vw, 11.5px);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--h7-dim);
}

/* ---------------------------------------------------------------------
   8) NLE TIMELINE STRIP — the signature "this is a video editor" element
--------------------------------------------------------------------- */
.h7-timeline{
    width: 100%;
    max-width: 1320px;
    margin-top: clamp(22px, 3.4vh, 44px);
    border: 1px solid var(--h7-line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    text-align: left;
    position: relative;
}

/* top bar of the "editor" */
.h7-tl-bar{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px clamp(12px, 1.4vw, 18px);
    border-bottom: 1px solid var(--h7-line);
    background: rgba(0,0,0,.28);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--h7-dim);
}
.h7-tl-lights{ display: inline-flex; gap: 6px; flex: none; }
.h7-tl-lights i{ width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.h7-tl-lights i:first-child{ background: var(--h7-accent); }
.h7-tl-name{ color: #fff; letter-spacing: .1em; }
.h7-tl-bar .h7-tl-right{ margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.h7-tl-badge{
    padding: 4px 9px;
    border: 1px solid var(--h7-line);
    border-radius: 6px;
    font-size: 9.5px;
    letter-spacing: .14em;
}
@media (max-width: 639px){ .h7-tl-bar .h7-tl-right{ display: none; } }

/* ruler */
.h7-tl-ruler{
    position: relative;
    display: flex;
    height: 24px;
    padding-left: var(--h7-head, 74px);
    border-bottom: 1px solid var(--h7-line);
    background: rgba(0,0,0,.18);
}
.h7-tl-ruler span{
    flex: 1;
    position: relative;
    font-size: 9px;
    letter-spacing: .1em;
    color: rgba(255,255,255,.32);
    padding: 7px 0 0 6px;
    border-left: 1px solid var(--h7-line);
    font-variant-numeric: tabular-nums;
}

/* tracks */
.h7-tl-tracks{ position: relative; }
.h7-tl-track{
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--h7-line);
    min-height: 0;
}
.h7-tl-track:last-child{ border-bottom: 0; }
.h7-tl-head{
    width: var(--h7-head, 74px);
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-right: 1px solid var(--h7-line);
    background: rgba(0,0,0,.24);
    font-size: 10px;
    letter-spacing: .12em;
    color: var(--h7-dim);
    text-transform: uppercase;
}
.h7-tl-head i{ color: rgba(255,255,255,.35); font-size: 9px; }
.h7-tl-lane{
    position: relative;
    flex: 1;
    display: flex;
    gap: 4px;
    padding: 6px;
    min-width: 0;
}

/* clips */
.h7-clip{
    position: relative;
    flex: var(--w, 1);
    min-width: 0;
    border-radius: 7px;
    border: 1px solid var(--h7-line-hi);
    background: rgba(255,255,255,.05);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: border-color .4s ease, transform .4s var(--h7-ease), box-shadow .4s ease;
    cursor: default;
}
.h7-clip img{
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .40;
    transition: opacity .45s ease, transform .6s var(--h7-ease);
}
.h7-clip::before{
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.72));
}
.h7-clip b{
    position: relative;
    padding: 6px 8px;
    font-size: clamp(8.5px, .85vw, 10.5px);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.h7-clip.is-hot,
.h7-clip:hover{
    border-color: var(--h7-accent);
    box-shadow: 0 0 0 1px rgba(255,71,28,.35), 0 12px 30px rgba(255,71,28,.14);
}
.h7-clip.is-hot img,
.h7-clip:hover img{ opacity: .72; transform: scale(1.06); }
.h7-clip.is-hot b,
.h7-clip:hover b{ color: #fff; }

/* video lane height */
.h7-lane-v1 .h7-clip{ height: clamp(42px, 5.4vw, 58px); }
.h7-lane-v2 .h7-clip{ height: clamp(22px, 3vw, 30px); align-items: center; }
.h7-lane-v2 .h7-clip{ background: rgba(255,71,28,.14); border-color: rgba(255,71,28,.3); }
.h7-lane-v2 .h7-clip b{ padding: 0 8px; }

/* audio lane + waveform */
.h7-lane-a1{ padding: 8px 6px; }
.h7-wave{
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    height: clamp(24px, 3.6vw, 38px);
    border-radius: 7px;
    border: 1px solid rgba(90,140,255,.22);
    background: rgba(90,140,255,.07);
    padding: 0 7px;
    overflow: hidden;
}
.h7-wave i{
    flex: 1;
    min-width: 1px;
    border-radius: 2px;
    background: rgba(140,175,255,.55);
    height: var(--h, 40%);
    transform-origin: center;
    animation: h7Wave 1.1s ease-in-out infinite alternate;
    animation-delay: var(--wd, 0s);
}
@keyframes h7Wave{ from{ transform: scaleY(.35); } to{ transform: scaleY(1); } }

/* playhead */
.h7-playhead{
    position: absolute;
    top: 0; bottom: 0;
    left: var(--h7-head, 74px);
    width: 2px;
    background: var(--h7-accent);
    box-shadow: 0 0 14px rgba(255,71,28,.8);
    z-index: 4;
    pointer-events: none;
    will-change: transform;
}
.h7-playhead::before{
    content: "";
    position: absolute;
    top: -1px; left: 50%;
    width: 11px; height: 11px;
    transform: translateX(-50%);
    background: var(--h7-accent);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* footer row of the timeline: services + socials */
.h7-tl-foot{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px clamp(10px, 1.6vw, 22px);
    padding: 11px clamp(12px, 1.4vw, 18px);
    border-top: 1px solid var(--h7-line);
    background: rgba(0,0,0,.24);
    font-size: clamp(10px, 1.05vw, 12px);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--h7-dim);
}
.h7-tl-foot .h7-tag{ display: inline-flex; align-items: center; gap: 7px; }
.h7-tl-foot .h7-tag::before{
    content: "";
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--h7-accent);
    flex: none;
}
.h7-tl-foot .h7-social{ margin-left: auto; display: inline-flex; gap: clamp(10px, 1.4vw, 18px); }
.h7-tl-foot .h7-social a{ color: var(--h7-dim); transition: color .3s ease; }
.h7-tl-foot .h7-social a:hover{ color: var(--h7-accent); }
@media (max-width: 767px){
    .h7-tl-foot .h7-social{ margin-left: 0; width: 100%; justify-content: flex-start; }
}

/* scroll cue */
.h7-cue{
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: clamp(8px, 1.2vh, 14px);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
}
.h7-cue i{
    width: 1px; height: 26px;
    background: linear-gradient(to bottom, var(--h7-accent), transparent);
    animation: h7Cue 1.9s ease-in-out infinite;
}
@keyframes h7Cue{
    0%, 100%{ transform: scaleY(.4); opacity: .4; transform-origin: top; }
    50%{ transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---------------------------------------------------------------------
   9) RESPONSIVE
--------------------------------------------------------------------- */
@media (max-width: 1199px){
    .yg-hero7{ min-height: auto; padding-top: clamp(120px, 15vh, 170px); }
    .h7-timeline{ --h7-head: 64px; }
}
@media (max-width: 991px){
    .h7-title{ max-width: 16ch; font-size: clamp(2.1rem, 7vw, 3.6rem); }
    .h7-lane-v1 .h7-clip:nth-child(n + 4){ display: none; }
    .h7-lane-v2 .h7-clip:nth-child(n + 3){ display: none; }
}
@media (max-width: 767px){
    .yg-hero7{ padding-bottom: 34px; }
    .h7-timeline{ --h7-head: 52px; }
    .h7-tl-head{ font-size: 9px; letter-spacing: .08em; padding: 0 7px; }
    .h7-tl-head i{ display: none; }
    .h7-tl-ruler span:nth-child(n + 5){ display: none; }
    .h7-reel{ width: 100%; justify-content: center; }
    .h7-btn{ flex: 1 1 auto; justify-content: center; }
    .h7-stats{ gap: 16px 26px; }
}
@media (max-width: 575px){
    .yg-hero7{ padding-left: 16px; padding-right: 16px; }
    .h7-title{ font-size: clamp(1.85rem, 8.6vw, 2.6rem); max-width: 100%; }
    .h7-sub{ font-size: 14px; }
    .h7-lane-v1 .h7-clip:nth-child(n + 3){ display: none; }
    .h7-tl-ruler span:nth-child(n + 4){ display: none; }
    .h7-stat{ min-width: 72px; }
    .h7-stats{ gap: 14px 20px; }
    .h7-cue{ display: none; }
}
@media (max-width: 374px){
    .h7-actions{ flex-direction: column; align-items: stretch; }
    .h7-btn{ width: 100%; }
}

/* very wide screens */
@media (min-width: 1800px){
    .yg-hero7-inner, .h7-timeline{ max-width: 1520px; }
}

/* ---------------------------------------------------------------------
   10) Reduced motion
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
    .yg-hero7 *,
    .yg-hero7 *::before,
    .yg-hero7 *::after{
        animation: none !important;
        transition-duration: .01ms !important;
    }
    .h7-up{ opacity: 1; transform: none; }
    .h7-title .h7-w > span{ transform: none; }
    .h7-mark{ background-size: 100% .06em; }
    .h7-rot > span{ opacity: 0; filter: none; transform: none; }
    .h7-rot > span.is-on{ opacity: 1; }
}

/* short laptop screens: shed the scroll cue so the timeline stays in frame */
@media (min-width: 992px) and (max-height: 900px){
    .h7-cue{ display: none; }
    .yg-hero7{ padding-top: clamp(96px, 10vh, 112px); }
    .h7-stats{ gap: 12px 34px; }
}

/* keep the timeline footer tags from spilling on narrow phones */
.h7-tl-foot .h7-tag{ flex: 0 1 auto; min-width: 0; }
@media (max-width: 575px){
    .h7-tl-foot{ font-size: 9.5px; gap: 7px 12px; }
    .h7-tl-foot .h7-tag:nth-of-type(n + 4){ display: none; }
}

/* ===========================================================================
   12) ORBIT RINGS + FLOATING CATEGORY CHIPS
   Concentric rings rotate behind the headline with accent dots riding them;
   the video-editing categories float in the left/right margins so they never
   cross the copy. Decorative only — no pointer events, off under
   prefers-reduced-motion.
=========================================================================== */
.h7-orbit{
    position: absolute;
    top: 46%;
    left: 50%;
    width: 0; height: 0;
    pointer-events: none;
}
.h7-oring{
    position: absolute;
    top: 0; left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.h7-oring i{
    position: absolute;
    top: -4px; left: 50%;
    width: 8px; height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: var(--h7-accent);
    box-shadow: 0 0 12px rgba(255,71,28,.8);
}
.h7-oring.r1{
    width: clamp(380px, 52vw, 760px); height: clamp(380px, 52vw, 760px);
    border: 1px solid rgba(255,255,255,.055);
    animation: h7ORing 34s linear infinite;
}
.h7-oring.r2{
    width: clamp(280px, 38vw, 560px); height: clamp(280px, 38vw, 560px);
    border: 1px dashed rgba(255,71,28,.20);
    animation: h7ORing 40s linear infinite;
}
.h7-oring.r3{
    width: clamp(190px, 26vw, 380px); height: clamp(190px, 26vw, 380px);
    border: 1px solid rgba(255,255,255,.08);
    animation: h7ORing 26s linear infinite reverse;
}
.h7-oring.r4{
    width: clamp(520px, 70vw, 1040px); height: clamp(520px, 70vw, 1040px);
    border: 1px solid rgba(255,255,255,.035);
    animation: h7ORing 70s linear infinite;
}
@keyframes h7ORing{ to{ transform: translate(-50%, -50%) rotate(360deg); } }

/* ---- floating category chips ------------------------------------- */
.h7-floats{ position: absolute; inset: 0; pointer-events: none; }
.h7-float{
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 100px;
    background: rgba(14,14,14,.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: clamp(10px, 1.05vw, 12.5px);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.62);
    white-space: nowrap;
    animation: h7Float 9s ease-in-out infinite;
    animation-delay: var(--fd, 0s);
}
.h7-float i{ color: var(--h7-accent); font-size: 1.05em; }
@keyframes h7Float{
    0%, 100%{ transform: translateY(0); opacity: .72; }
    50%     { transform: translateY(-14px); opacity: 1; }
}
.h7-float.f1{ top: 17%; left: 4%;  --fd: 0s; }
.h7-float.f2{ top: 41%; left: 1.5%; --fd: 1.5s; }
.h7-float.f3{ top: 52%; left: 5%;  --fd: 3s; }
.h7-float.f4{ top: 17%; right: 4%;  --fd: .8s; }
.h7-float.f5{ top: 41%; right: 1.5%; --fd: 2.2s; }
.h7-float.f6{ top: 52%; right: 5%;  --fd: 3.6s; }

/* narrower desktops: keep only the outer four so nothing crowds the copy */
@media (max-width: 1499px){
    .h7-float.f2, .h7-float.f5{ display: none; }
}
@media (max-width: 1199px){ .h7-floats{ display: none; } }
@media (max-width: 767px){
    .h7-orbit{ top: 40%; }
    .h7-oring.r4{ display: none; }
}

@media (prefers-reduced-motion: reduce){
    .h7-orbit, .h7-floats{ display: none; }
}
