.hero-track:has([data-sequence="ring"]) { height: 400vh; }
.hero-track:has([data-sequence="ring"][data-ring="off"]) { height: 240vh; }
.hero[data-ring="off"] .power-ring { display: none; }
.hero-track:has([data-sequence="ring"][data-ring="off"][data-bolt="off"]) { height: 150vh; }
.hero[data-bolt="off"] .bolt-slogan { display: none; }

.hero.is-askey[data-sequence="ring"] {
    --power-dark: 0;
    --power-focus-x: .5;
    --power-focus-y: .5;
    --power-copy-opacity: 1;
    --power-ring-size: min(76vh, 54vw);
    --col: clamp(24px, 8vw, 170px);
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #000;
}

.hero[data-sequence="ring"] .visual { background: #000; }
.hero[data-sequence="ring"] .poster,
.hero[data-sequence="ring"] #footage { opacity: calc(1 - var(--power-dark)); }
.hero[data-sequence="ring"] .shade { opacity: calc(1 - var(--power-dark) * 2); }
.hero[data-sequence="ring"] #footage:not(.ready) { opacity: 0; }
.hero[data-sequence="ring"].immersive .shade { opacity: 0; }

.hero.is-askey[data-sequence="ring"]:not(.immersive) .center-content,
.hero.is-askey[data-sequence="ring"]:not(.immersive) .view-button,
.hero.is-askey[data-sequence="ring"]:not(.immersive) .accent-dash,
.hero.is-askey[data-sequence="ring"]:not(.immersive) .scroll-down {
    opacity: var(--power-copy-opacity) !important;
}
.hero.is-askey[data-sequence="ring"].is-copy-exited .center-content,
.hero.is-askey[data-sequence="ring"].is-copy-exited .view-button,
.hero.is-askey[data-sequence="ring"].is-copy-exited .accent-dash,
.hero.is-askey[data-sequence="ring"].is-copy-exited .scroll-down {
    visibility: hidden;
    pointer-events: none;
}
.hero.is-askey[data-sequence="ring"] .center-content { width: 26vw; }
.hero.is-askey[data-sequence="ring"] .headline { font-size: clamp(28px, 2.8vw, 50px); }
.hero.is-askey[data-sequence="ring"] .subtitle { font-size: clamp(16px, 1.3vw, 25px); }
.hero.is-askey[data-sequence="ring"] .desc { font-size: clamp(12px, .8vw, 15px); }

.hero.is-askey[data-sequence="ring"] .bolt-slogan {
    position: absolute;
    left: var(--col);
    top: 50%;
    z-index: 10;
    width: min(42vw, 680px);
    opacity: 0;
    transform: translateY(calc(-50% + (1 - var(--power-slogan, 0)) * 28px));
    pointer-events: none;
    text-align: left;
    color: #fff;
}
.hero.is-askey[data-sequence="ring"]:not(.immersive) .bolt-slogan { opacity: calc(var(--power-slogan, 0) * var(--slogan-keep, 1)); }
.bolt-slogan :where(p) { margin: 0; }
.bolt-slogan-en {
    font: 700 clamp(28px, 2.8vw, 52px)/1.12 Inter, Arial, sans-serif;
    letter-spacing: .012em;
    text-shadow: 0 2px 22px rgba(2, 8, 14, .45);
}
.bolt-slogan-tc {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.1vw, 20px);
    margin-top: clamp(16px, 1.7vw, 30px);
    font: 500 clamp(14px, 1.12vw, 21px)/1.6 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    letter-spacing: .3em;
    color: #e3eaec;
    text-shadow: 0 1px 14px rgba(2, 8, 14, .5);
}
.bolt-slogan-tc::before {
    content: "";
    flex: none;
    width: clamp(26px, 2.4vw, 44px);
    height: 2px;
    background: #3fc1ae;
}

.power-ring {
    position: absolute;
    left: calc(var(--power-focus-x) * 100%);
    top: calc(var(--power-focus-y) * 100%);
    width: var(--power-ring-size);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.power-ring-stage { position: relative; width: 100%; height: 100%; }
.power-ring-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.power-ring-photo-tint { fill: rgba(6, 18, 20, .22); }
.power-ring-dots {
    fill: none;
    stroke: #d1caba;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-dasharray: .01 1.35;
}
.power-ring-fine { fill: none; stroke: #fff; stroke-width: 1; opacity: .38; }
.power-ring-fine.is-inner { opacity: .2; }
.power-ring-ticks line { stroke: #d1caba; stroke-width: 2.2; }
.power-ring-progress {
    fill: none;
    stroke: #d1caba;
    stroke-opacity: .6;
    stroke-width: 8;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.power-ring-labels text {
    fill: #fff;
    font: 500 15px Inter, Arial, sans-serif;
    letter-spacing: 1.2px;
    text-anchor: middle;
    paint-order: stroke;
    stroke: rgba(0, 0, 0, .3);
    stroke-width: 2px;
}
.power-ring-labels circle { fill: #fff; }
.power-ring-labels .power-ring-node-halo { fill: rgba(255, 255, 255, .15); }
.power-ring-index circle { fill: #fff; stroke: #d1caba; stroke-width: 1; }
.power-ring-index path { fill: none; stroke: #a69a80; stroke-width: 1.3; }
.power-ring-title,
.power-ring-description {
    position: absolute;
    left: 24%;
    width: 52%;
    text-align: center;
    margin: 0;
    color: #f6f7f5;
}
.power-ring-title { top: 30%; font-size: clamp(15px, 1.5vw, 28px); font-weight: 700; }
.power-ring-description { bottom: 27%; font-size: clamp(12px, .9vw, 16px); line-height: 1.7; color: #d1d6d3; }
.hero.immersive .power-ring { display: none; }

@media (max-width: 900px) {
    .hero.is-askey[data-sequence="ring"] {
        --col: 6vw;
        --power-focus-x: .5;
        --power-focus-y: .5;
        --power-ring-size: min(84vw, 46vh);
    }
    .hero.is-askey[data-sequence="ring"] .center-content {
        top: calc(var(--bar-h) + 26px);
        right: 6vw;
        width: auto;
        transform: none;
    }
    .hero.is-askey[data-sequence="ring"] .tags { margin-bottom: 14px; }
    .hero.is-askey[data-sequence="ring"] .headline { font-size: clamp(26px, 4.4vw, 38px); }
    .hero.is-askey[data-sequence="ring"] .subtitle { margin-top: 12px; font-size: 16px; }
    .hero.is-askey[data-sequence="ring"] .desc { margin-top: 10px; font-size: 12px; max-width: 52ch; }
    .hero.is-askey[data-sequence="ring"] .view-button { bottom: 24px; }
    .hero.is-askey[data-sequence="ring"] .scene-nav { bottom: 24px; }
    .power-ring-labels text { font-size: 28px; letter-spacing: .5px; }
    .hero.is-askey[data-sequence="ring"] .bolt-slogan {
        top: calc(var(--bar-h) + 30px);
        right: 6vw;
        width: auto;
        transform: translateY(calc((1 - var(--power-slogan, 0)) * 20px));
    }
    .bolt-slogan-en { font-size: clamp(22px, 7.4vw, 44px); }
    .bolt-slogan-tc { font-size: clamp(13px, 3.7vw, 17px); letter-spacing: .22em; }
}

@media (max-width: 600px) and (max-height: 740px) {
    .hero.is-askey[data-sequence="ring"] { --power-ring-size: min(78vw, 40vh); --power-focus-y: .5; }
    .hero.is-askey[data-sequence="ring"] .center-content { top: calc(var(--bar-h) + 16px); }
    .hero.is-askey[data-sequence="ring"] .headline { font-size: 24px; }
    .hero.is-askey[data-sequence="ring"] .tags { gap: 6px 12px; margin-bottom: 10px; }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .hero.is-askey[data-sequence="ring"] {
        --power-focus-x: .5;
        --power-focus-y: .5;
        --power-ring-size: min(70vh, 40vw);
    }
    .hero.is-askey[data-sequence="ring"] .center-content {
        top: calc(var(--bar-h) + 12px);
        right: auto;
        width: 40vw;
    }
    .hero.is-askey[data-sequence="ring"] .tags { gap: 6px 10px; margin-bottom: 8px; }
    .hero.is-askey[data-sequence="ring"] .headline { font-size: 24px; }
    .hero.is-askey[data-sequence="ring"] .subtitle { margin-top: 8px; font-size: 14px; }
    .hero.is-askey[data-sequence="ring"] .desc { margin-top: 8px; line-height: 1.4; }
    .hero.is-askey[data-sequence="ring"] .bolt-slogan { top: calc(var(--bar-h) + 14px); right: auto; width: 46vw; }
    .bolt-slogan-en { font-size: 24px; }
    .bolt-slogan-tc { margin-top: 10px; font-size: 13px; }
    .power-ring-labels text { font-size: 32px; }
    .power-ring-title { top: 27%; font-size: 13px; }
    .power-ring-description { bottom: 23%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-track:has([data-sequence="ring"]),
    .hero-track:has([data-sequence="ring"][data-ring="off"]),
    .hero-track:has([data-sequence="ring"][data-ring="off"][data-bolt="off"]) { height: 100svh; }
    .hero.is-askey[data-sequence="ring"] { position: relative; height: 100svh; }
    .power-ring { display: none; }
}
