/* ============================================================
   BLOC HERO VIVANT — shokola_hero_live
   Tout est scoppé sous .shk-hlive (CSS chargé globalement par le bloc).
   Tokens : variables du framework Kakao uniquement (pas de valeurs en dur).
   ============================================================ */

.shk-hlive {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: clamp(40px, 6vw, 76px);
    background: var(--color-paper);
    color: var(--color-dark);
    transition: background .7s cubic-bezier(.4, 0, .2, 1);
}
.shk-hlive.is-revealing {
    background: var(--color-dark);
}

/* --- Grille de fond --- */
.shk-hlive__grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(var(--shk-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--shk-line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 78%);
            mask-image: radial-gradient(circle at 70% 30%, #000, transparent 78%);
    opacity: .6;
    transition: opacity .7s cubic-bezier(.4, 0, .2, 1);
}
.shk-hlive.is-revealing .shk-hlive__grid {
    opacity: 0;
}

/* --- Coins (registration marks) --- */
.shk-hlive__corner {
    position: absolute;
    width: 54px;
    height: 54px;
    z-index: 1;
    opacity: 0;
    animation: shkHliveFade .8s 1.1s forwards;
}
.shk-hlive__corner::before,
.shk-hlive__corner::after {
    content: "";
    position: absolute;
    background: var(--color-ink-soft);
}
.shk-hlive__corner::before { width: 1px; height: 100%; left: 50%; }
.shk-hlive__corner::after  { height: 1px; width: 100%; top: 50%; }
.shk-hlive__corner.tl { top: 96px; left: var(--shk-pad); }
.shk-hlive__corner.tr { top: 96px; right: var(--shk-pad); }
.shk-hlive__corner.br { bottom: 36px; right: var(--shk-pad); }

/* --- Conteneur intérieur --- */
.shk-hlive__in {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--shk-maxw);
    margin: 0 auto;
    padding-left: var(--shk-pad);
    padding-right: var(--shk-pad);
}

/* --- Eyebrow --- */
.shk-hlive__eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: clamp(24px, 4vw, 40px);
    overflow: hidden;
}
.shk-hlive__eyebrow span {
    font-family: var(--font-2);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.shk-hlive__eyebrow .tick {
    width: 7px;
    height: 7px;
    background: var(--color-primaire);
    border-radius: 50%;
}

/* --- Titre --- */
.shk-hlive__title {
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .92;
    font-size: clamp(3rem, 12vw, 11rem);
    margin-bottom: clamp(28px, 4vw, 44px);
}
.shk-hlive__title .line { display: block; overflow: hidden; }
.shk-hlive__title .reveal { display: inline-block; transform: translateY(110%); }

.shk-hlive__wcode {
    color: var(--color-primaire);
    font-family: var(--font-2);
    font-weight: 500;
    letter-spacing: -.02em;
    font-size: .86em;
}
.shk-hlive__wencre {
    font-family: var(--font-3);
    font-style: italic;
    font-weight: 500;
    color: var(--color-secondaire);
    letter-spacing: -.01em;
}

/* --- Signature + sous-titre --- */
.shk-hlive__sign {
    font-family: var(--font-3);
    font-style: italic;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    color: var(--color-ink-2);
    margin: 8px 0 0;
    max-width: 44ch;
    line-height: 1.4;
}
.shk-hlive__sign .shk-hlive__wcode { font-family: var(--font-2); font-style: normal; color: var(--color-primaire); font-size: .9em; }
.shk-hlive__sign .shk-hlive__wencre { color: var(--color-secondaire); }

.shk-hlive__sub {
    max-width: 46ch;
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    color: var(--color-ink-2);
    line-height: 1.6;
    margin-top: 18px;
}

/* --- Boutons --- */
.shk-hlive__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: clamp(24px, 3vw, 38px);
}
.shk-hlive__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-2);
    font-weight: 500;
    font-size: .85rem;
    letter-spacing: .04em;
    padding: 16px 24px;
    border-radius: 2px;
    position: relative;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .3s, color .3s, border-color .3s;
    will-change: transform;
}
.shk-hlive__btn .arrow { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.shk-hlive__btn:hover .arrow { transform: translateX(5px); }
.shk-hlive__btn--primary { background: var(--color-dark); color: var(--color-paper); }
.shk-hlive__btn--primary:hover { background: var(--color-secondaire); }
.shk-hlive__btn--ghost { border: 1px solid var(--shk-line-2); color: var(--color-dark); }
.shk-hlive__btn--ghost:hover { border-color: var(--color-dark); background: var(--color-dark); color: var(--color-paper); }
.shk-hlive__btn:focus-visible { outline: 2px solid var(--color-primaire); outline-offset: 3px; }
.shk-hlive.is-revealing .shk-hlive__btn--ghost { border-color: rgba(251, 250, 246, .4); color: var(--color-paper); }

/* --- Scroll cue --- */
.shk-hlive__cue {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: var(--font-2);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--color-ink-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
}
.shk-hlive__cue .l {
    width: 1px;
    height: 34px;
    background: var(--color-ink-soft);
    position: relative;
    overflow: hidden;
}
.shk-hlive__cue .l::after {
    content: "";
    position: absolute;
    top: -34px;
    left: 0;
    width: 1px;
    height: 34px;
    background: var(--color-secondaire);
    animation: shkHliveScroll 2s infinite;
}
@keyframes shkHliveScroll { 0% { top: -34px; } 60%, 100% { top: 34px; } }

/* ============================================================
   HERO VIVANT — champ de tuiles, washes, titres reel
   ============================================================ */
.shk-hlive__washes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.shk-hlive__wash {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s cubic-bezier(.4, 0, .2, 1);
    background: radial-gradient(120% 95% at var(--wx, 72%) var(--wy, 42%), var(--c), transparent 62%), var(--color-dark);
}
.shk-hlive__wash.on { opacity: 1; }

.shk-hlive__field {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    -webkit-mask: radial-gradient(115% 105% at 80% 46%, #000 26%, transparent 74%);
            mask: radial-gradient(115% 105% at 80% 46%, #000 26%, transparent 74%);
}
.shk-hlive.is-revealing .shk-hlive__field { -webkit-mask: none; mask: none; }

.shk-hlive__tile {
    position: absolute;
    will-change: transform;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.shk-hlive__tile-drift {
    width: 100%;
    height: 100%;
    animation: shkHliveDrift var(--dur, 16s) ease-in-out infinite alternate;
}
.shk-hlive__tile-img {
    position: absolute;
    inset: 0;
    background: var(--g);
    background-size: cover;
    border-radius: 3px;
    opacity: 0;
    filter: brightness(1.15) saturate(.65);
    transform: scale(1.08);
    transition: opacity .55s, filter .6s, clip-path .95s cubic-bezier(.16, 1, .3, 1), transform .95s cubic-bezier(.16, 1, .3, 1);
}
.shk-hlive__tile-img::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 14px;
    height: 14px;
    opacity: .55;
    mix-blend-mode: overlay;
    background: linear-gradient(#fff, #fff) center/1px 100% no-repeat, linear-gradient(#fff, #fff) center/100% 1px no-repeat;
}
.shk-hlive__tile.amb .shk-hlive__tile-img { opacity: .15; transform: scale(1); }
.shk-hlive.is-revealing .shk-hlive__tile.amb .shk-hlive__tile-img { opacity: 0; }
.shk-hlive__tile.lit .shk-hlive__tile-img { opacity: 1; filter: none; transform: scale(1); }
@keyframes shkHliveDrift { from { transform: translate(0, 0); } to { transform: translate(var(--dx, 10px), var(--dy, -14px)); } }

.shk-hlive__titles {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    pointer-events: none;
    padding: 0 6vw;
}
.shk-hlive__htitle {
    grid-area: 1/1;
    text-align: center;
    font-family: var(--font-1);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: .95;
    font-size: clamp(2.6rem, 9vw, 8rem);
    color: var(--color-paper);
    opacity: 0;
    transform: scale(.93);
    mix-blend-mode: difference;
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}
.shk-hlive__htitle.on { opacity: 1; transform: none; }
.shk-hlive__htitle small {
    display: block;
    font-family: var(--font-2);
    font-weight: 400;
    font-size: .15em;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-top: 1.3em;
    color: var(--color-primaire);
    mix-blend-mode: normal;
}

.shk-hlive__default { transition: opacity .5s, transform .6s cubic-bezier(.16, 1, .3, 1); }
.shk-hlive.is-revealing .shk-hlive__default { opacity: 0; transform: translateY(-12px); pointer-events: none; }

.shk-hlive__works { margin-top: clamp(22px, 3vw, 38px); pointer-events: auto; }
.shk-hlive__works .lbl {
    font-family: var(--font-2);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-ink-soft);
    margin-bottom: 12px;
    display: block;
    transition: color .5s;
}
.shk-hlive__works .items { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.shk-hlive__works a {
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: clamp(1.05rem, 1.7vw, 1.5rem);
    color: var(--color-dark);
    position: relative;
    transition: color .35s, transform .35s cubic-bezier(.2, .8, .2, 1);
    width: max-content;
}
.shk-hlive__works a .idx {
    font-family: var(--font-2);
    font-size: .5em;
    font-weight: 400;
    opacity: .5;
    margin-right: .5em;
    vertical-align: middle;
}
.shk-hlive__works a:hover,
.shk-hlive__works a.current { color: var(--color-secondaire); transform: translateX(6px); }
.shk-hlive.is-revealing .shk-hlive__eyebrow,
.shk-hlive.is-revealing .shk-hlive__works .lbl { color: rgba(251, 250, 246, .6); }
.shk-hlive.is-revealing .shk-hlive__works a { color: var(--color-paper); }
.shk-hlive.is-revealing .shk-hlive__works a:hover { color: var(--color-primaire); }

@keyframes shkHliveFade { to { opacity: 1; } }

/* --- Responsive --- */
@media (max-width: 820px) {
    .shk-hlive__field,
    .shk-hlive__washes,
    .shk-hlive__titles { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .shk-hlive__tile-drift { animation: none; }
    .shk-hlive__tile,
    .shk-hlive__tile-img,
    .shk-hlive__wash,
    .shk-hlive,
    .shk-hlive__htitle,
    .shk-hlive__default { transition-duration: .001ms; }
    .shk-hlive__title .reveal { transform: none; }
    .shk-hlive__corner,
    .shk-hlive__cue { opacity: 1; }
}
