:root {
    --accent: #2EC2E0;
    --rgb: 46, 194, 224;
    color-scheme: dark;
    font-family: Arial, 'PingFang TC', 'Noto Sans TC', sans-serif;
    background: #050609;
    color: #f7f6fa
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at 70% 50%, #161028 0, transparent 55%), #050609
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid white;
    outline-offset: 6px
}

button {
    background: none;
    border: 0
}

header {
    height: 100px;
    margin: 0 4%;
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid #ffffff26
}

.wordmark {
    text-decoration: none;
    color: white;
    font-family: Georgia, serif;
    font-size: 46px;
    letter-spacing: -4px;
    line-height: .8
}

.wordmark span {
    font: 12px Arial;
    letter-spacing: 5px;
    display: block;
    margin-top: 10px
}

.header-caption {
    font: 18px Georgia;
    letter-spacing: 4px
}

.header-caption span {
    display: block;
    font: 10px Arial;
    letter-spacing: 2px;
    margin-top: 10px;
    color: #9d9aa9
}

.quiet {
    margin-left: auto;
    font-size: 14px
}

.demo-tag {
    border: 1px solid #ffffff32;
    border-radius: 20px;
    padding: 9px 12px;
    font-size: 10px;
    letter-spacing: 1px;
    color: #bcb8c7
}

main {
    display: grid;
    grid-template-columns: 32% 68%;
    max-width: 1600px;
    margin: auto;
    min-height: calc(100vh - 200px);
    align-items: center;
    padding: 20px 4%
}

.intro {
    position: relative;
    z-index: 2;
    padding: 20px 0
}

.eyebrow {
    font-size: 16px;
    letter-spacing: 2.5px;
    color: var(--accent);
    font-weight: 500
}

h1 {
    font-family: 'Songti TC', 'Noto Serif TC', Georgia, serif;
    font-size: clamp(38px, 4.5vw, 70px);
    font-weight: 400;
    line-height: 1.38;
    letter-spacing: 5px;
    margin: 24px 0
}

h1 span {
    color: var(--accent)
}

.intro-copy {
    font-size: 16px;
    color: #b1acbd;
    line-height: 1.9;
    letter-spacing: 2px
}

.categories {
    display: flex;
    gap: 12px;
    margin-top: 35px
}

.categories button {
    font-family: 'Songti TC', serif;
    border: 1px solid #ffffff28;
    border-radius: 50%;
    height: 54px;
    width: 54px;
    font-size: 24px;
    transition: .3s
}

.categories button.active {
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 22px #9563e04d, inset 0 0 18px #936ed62b
}

.categories button:hover {
    background: #ffffff12
}

.cat-description {
    font-size: 14px;
    color: #c3bece;
    max-width: 290px;
    min-height: 48px;
    line-height: 1.8
}

.edition {
    margin-top: 35px;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 1px;
    color: #d2cbdc
}

.edition span {
    font-size: 11px;
    color: #777381
}

.experience {
    min-width: 0
}

.orb {
    position: relative;
    width: min(100%, 740px);
    aspect-ratio: 1;
    margin: auto;
    isolation: isolate
}

canvas {
    width: 110%;
    height: 110%;
    position: absolute;
    left: -5%;
    top: -5%;
    z-index: -3;
    mask-image: radial-gradient(circle, black 30%, #000e 47%, transparent 70%);
    opacity: .85;
    transition: filter 1s
}

.shade {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: -2;
    background: radial-gradient(circle, #05060aea 0%, #090710b5 24%, transparent 55%)
}

.orbit-lines {
    position: absolute;
    inset: 10%;
    border: 1px solid #ffffff23;
    border-radius: 50%;
    box-shadow: 0 0 60px #0004
}

.orbit-lines:before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px dashed #ffffff16;
    border-radius: 50%
}

.dial {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    touch-action: none;
    cursor: grab
}

.dial.dragging {
    cursor: grabbing
}

.stop {
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: grid;
    place-items: center
}

.stop:before {
    content: '';
    width: 5px;
    height: 5px;
    background: #e6dffb88;
    border-radius: 50%;
    box-shadow: 0 0 7px #cec6ed;
    transition: .3s
}

.stop.active:before {
    width: 9px;
    height: 9px;
    background: white;
    box-shadow: 0 0 8px white, 0 0 24px var(--accent)
}

.stop.active {
    border: 1px solid var(--accent);
    background: #11101890
}

.stop:hover {
    background: #ffffff1c
}

.stop .number {
    position: absolute;
    color: #c1b9d3;
    font-size: 10px;
    transform: translateY(-23px);
    opacity: 0
}

.stop:hover .number,
.stop.active .number {
    opacity: 1
}

.show-card {
    position: absolute;
    left: 24%;
    top: 50%;
    width: 52%;
    text-align: center;
    transform: translateY(-50%);
    transition: opacity .22s, filter .22s, transform .22s;
    pointer-events: none
}

.show-card.exiting {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(-50%) scale(.92)
}

.show-card h2 {
    font-family: 'Songti TC', Georgia, serif;
    font-weight: 400;
    font-size: clamp(34px, 3.8vw, 58px);
    letter-spacing: 6px;
    margin: 12px 0 20px
}

.english-title {
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 20px;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 0
}

p#detailCopy {
    margin: 0;
}

.show-card p {
    color: #c1b8ce;
    font-size: 14px;
    line-height: 1.9;
    margin: 0 auto 25px;
    max-width: 280px
}

.detail-btn {
    pointer-events: auto;
    border: 1px solid #ffffff65;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 13px;
    letter-spacing: 2px;
    transition: background .2s
}

.detail-btn:hover {
    background: #ffffff1b
}

.detail-btn span {
    margin-left: 25px;
    color: var(--accent)
}

.category-watermark {
    position: absolute;
    right: 8%;
    bottom: 7%;
    font-family: 'Songti TC', serif;
    font-size: 80px;
    color: #ffffff17;
    pointer-events: none
}

.orbit-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    margin-top: -8px;
    position: relative;
    z-index: 3
}

.orbit-footer button {
    width: 34px;
    height: 34px;
    border: 1px solid #ffffff30;
    border-radius: 50%;
    font-size: 18px
}

.orbit-footer span {
    font-size: 12px;
    letter-spacing: 2px
}

.orbit-footer i {
    font-style: normal;
    color: #666;
    margin: 0 6px
}

.drag-hint {
    color: #948b9f;
    margin-left: 18px;
    font-size: 11px !important
}

footer {
    margin: 15px 4% 0;
    border-top: 1px solid #ffffff26;
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 85px
}

.footer-brand {
    font-size: 10px;
    letter-spacing: 2px;
    color: #8b839a;
    white-space: nowrap
}

.programme-strip {
    display: flex;
    gap: 10px;
    flex: 1
}

.programme-strip button {
    padding: 13px 16px;
    font-size: 12px;
    color: #88808f;
    border-bottom: 1px solid transparent
}

.programme-strip button.active {
    color: white;
    border-color: var(--accent)
}

.programme-strip small {
    color: var(--accent);
    margin-right: 12px
}

.footer-note {
    font-size: 11px;
    color: #89818f;
    letter-spacing: 1px
}

dialog {
    width: min(900px, 92vw);
    max-height: 90vh;
    background: #0c0b13;
    color: #eee;
    border: 1px solid #ffffff30;
    padding: 0;
    box-shadow: 0 20px 100px black
}

dialog::backdrop {
    background: #000c;
    backdrop-filter: blur(10px)
}

.close {
    position: absolute;
    right: 15px;
    top: 12px;
    width: 44px;
    height: 44px;
    z-index: 3;
    background: #090811a8;
    border-radius: 50%;
    font-size: 30px
}

.dialog-art {
    height: 200px;
    background: linear-gradient(0deg, #0c0b13, transparent), none center 40%/cover
}

.dialog-content {
    padding: 30px 80px 45px
}

.dialog-content h2 {
    font: 42px 'Songti TC', Georgia, serif;
    letter-spacing: 3px;
    margin:  0;
    line-height: 42px;
}

.dialog-content p {
    line-height: 1.5;
    font-size: 16px;
    color: #c6bfd1
}

.dialog-content dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0
}

.dialog-content dt {
    font-size: 12px;
    color: #8e839f;
    margin-bottom: 8px
}

.dialog-content dd {
    margin: 0;
    font-size: 15px
}

.dialog-content .sample-notice {
    font-size: 12px;
    color: #898092;
    border-top: 1px solid #ffffff20;
    padding-top: 18px
}

#aboutDialog {
    max-width: 640px
}

#aboutDialog .dialog-content {
    padding-top: 60px
}

@media(min-width:1500px) {
    .orb {
        width: 720px
    }
}

@media(max-width:1000px) {
    main {
        grid-template-columns: 30% 70%
    }

    h1 {
        font-size: 38px;
        letter-spacing: 2px
    }

    .categories {
        gap: 8px
    }

    .categories button {
        width: 42px;
        height: 42px;
        font-size: 21px
    }

    .footer-note {
        display: none
    }

    .show-card h2 {
        font-size: 37px
    }

    .show-card p {
        font-size: 13px
    }

    .intro-copy {
        font-size: 14px
    }

    .header-caption span {
        font-size: 9px
    }
}

@media(max-width:700px) {
    header {
        height: 83px;
        gap: 18px
    }

    .wordmark {
        font-size: 37px
    }

    .header-caption {
        font-size: 15px
    }

    .header-caption span {
        display: none
    }

    .demo-tag {
        display: none
    }

    main {
        display: flex;
        flex-direction: column;
        padding: 20px 3% 10px;
        min-height: 0
    }

    .intro {
        width: 100%;
        text-align: center;
        padding: 10px
    }

    .intro .eyebrow {
        font-size: 9px
    }

    h1 {
        font-size: 32px;
        line-height: 1.3;
        margin: 15px 0
    }

    h1 br {
        display: none
    }

    h1 span {
        display: none
    }

    .intro-copy,
    .edition {
        display: none
    }

    .categories {
        justify-content: center;
        margin-top: 20px
    }

    .cat-description {
        margin: 12px auto 0;
        min-height: 26px;
        font-size: 12px;
        max-width: 100%
    }

    .experience {
        width: 100%
    }

    .orb {
        width: 100%;
        margin-top: 0
    }

    .show-card {
        left: 22%;
        width: 56%
    }

    .show-card h2 {
        font-size: 32px;
        letter-spacing: 3px;
        margin: 15px 0 8px
    }

    .show-card .eyebrow {
        font-size: 9px;
        letter-spacing: 1px
    }

    .english-title {
        font-size: 16px
    }

    .show-card p {
        font-size: 12px;
        margin: 12px auto 17px;
        line-height: 1.6
    }

    .detail-btn {
        padding: 10px 14px;
        font-size: 12px
    }

    .category-watermark {
        font-size: 48px
    }

    .drag-hint {
        font-size: 9px !important;
        margin-left: 0;
        letter-spacing: 0 !important
    }

    .orbit-footer {
        gap: 10px;
        margin: 5px 0 15px
    }

    footer {
        min-height: 65px;
        margin: 0 4%
    }

    .programme-strip {
        gap: 0;
        justify-content: space-between
    }

    .programme-strip button {
        font-size: 11px;
        padding: 12px 5px
    }

    .programme-strip small {
        display: block;
        margin: 0 0 7px
    }

    .dialog-content {
        padding: 25px
    }

    .dialog-content h2 {
        font-size: 32px
    }

    .dialog-art {
        height: 150px
    }

    .stop {
        width: 36px;
        height: 36px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important
    }
}

.auto-playhead {
    position: absolute;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 12px white, 0 0 28px var(--accent);
    pointer-events: none
}

@media(prefers-reduced-motion:reduce) {
    .auto-playhead {
        display: none
    }
}


/* Broad, naturally coloured photographic mirror facets. */
#prism {
    opacity: 1;
    mask-image: radial-gradient(circle, black 58%, transparent 70%)
}

.shade {
    background: radial-gradient(circle, #050609e8 0%, #0506099c 17%, transparent 36%)
}

.show-card {
    left: 29%;
    width: 42%
}

.show-card h2 {
    font-size: clamp(26px, 4vw, 60px);
    letter-spacing: 2px;
    line-height: clamp(26px, 4vw, 60px);
}

.show-card p {
    font-size: 13px;
    line-height: 1.6
}

.dialog-art {
    height: clamp(220px, 45vh, 505px);
    background-color: #050609;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat
}

@media(max-width:700px) {
    .show-card {
        left: 27%;
        width: 46%
    }

    .show-card h2 {
        font-size: 26px
    }

    .show-card p {
        font-size: 12px
    }

    .show-card .english-title {
        font-size: 14px
    }
}

/* Open, asymmetric stage: imagery reaches past the controller into the page. */
body {
    overflow-x: clip;
    background: #050609
}

/* Share the body backdrop so pattern blend modes can sample the kaleidoscope. */
main {
    position: relative;
    isolation: auto
}

header,
footer {
    position: relative;
    z-index: 3
}

.experience {
    position: relative
}

.orb {
    isolation: auto
}

#prism {
    width: 145%;
    height: 145%;
    left: -21%;
    top: -25%;
    z-index: -2;
    mask-image: none;
    -webkit-mask-image: none;
    pointer-events: none;
    opacity: 1
}

.intro {
    background: linear-gradient(90deg, #050609f5 65%, #05060900);
    padding-right: 20px;
    text-shadow: 0 2px 15px #000
}

.shade {
    z-index: -1;
    background: radial-gradient(ellipse at center, #050609e6 0%, #05060990 19%, transparent 40%);
    border-radius: 0;
    pointer-events: none
}

.orbit-lines {
    border-color: #ffffff38;
    box-shadow: none
}

.show-card {
    text-shadow: 0 2px 12px #000, 0 0 25px #000
}

.detail-btn {
    background: #0506099c
}

.orbit-footer {
    background: #050609ad;
    border-radius: 24px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 14px
}

@media(max-width:700px) {
    #prism {
        width: 132%;
        height: 132%;
        left: -16%;
        top: -17%
    }

    .intro {
        background: linear-gradient(#050609, #050609db);
        padding-right: 10px
    }

    .demo-tag {
        display: inline-block;
        font-size: 10px;
        padding: 7px 9px
    }

    .header-caption {
        display: none
    }
}

/* Viewport-wide mirrored walls, independent of the controller's dimensions. */
body {
    isolation: isolate;
    background: #050609
}

#prism {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    mask-image: none;
    -webkit-mask-image: none;
    pointer-events: none
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, #050609e8 0%, #050609ab 22%, #05060920 52%, #05060912), linear-gradient(#05060995, transparent 18%, transparent 82%, #050609bb)
}

.intro {
    background: none
}

header,
footer {
    background: #05060955
}

@media(max-width:700px) {
    #prism {
        inset: 0;
        width: 100vw;
        height: 100vh
    }

    .intro {
        background: #05060999
    }

    body::before {
        background: linear-gradient(#050609b0, transparent 40%, #05060955)
    }
}

html {
    scroll-behavior: smooth
}

body::before,
.shade {
    opacity: var(--tuning-shade, 1)
}












.centre-gradient {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none
}

/* Dispersed rainbow light sits over the photography, under shading and text. */
.prism-light-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: screen
}

.prism-light-layer[hidden] {
    display: none
}

.prism-light-layer i {
    position: absolute;
    display: block;
    width: 76px;
    height: 28px;
    background: linear-gradient(90deg, transparent, rgba(255, 60, 60, .7) 15%, #ffbd57 28%, #dbff60 40%, #54ff87 52%, #5cecff 65%, #8484ff 78%, transparent);
    border-radius: 50%;
    mask-image: radial-gradient(ellipse, black 5%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse, black 5%, transparent 70%);
    transform: rotate(var(--beam-angle)) scale(calc(var(--beam-scale)*var(--prism-size)));
    animation: prism-light-drift var(--prism-period) ease-in-out infinite alternate;
    animation-play-state: var(--prism-play, running)
}

@keyframes prism-light-drift {
    from {
        translate: -18px -10px
    }

    to {
        translate: 22px 16px
    }
}

@media(prefers-reduced-motion:reduce) {
    .prism-light-layer i {
        animation: none
    }
}

.prism-light-layer i {
    filter: brightness(var(--prism-gain, 1));
    mask-image: radial-gradient(ellipse, black var(--prism-core, 5%), transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse, black var(--prism-core, 5%), transparent 75%)
}

/* Independent eased drift and soft, irregular spectral footprints. */
.prism-light-layer i {
    animation: none;
    translate: none;
    background: linear-gradient(var(--beam-spectrum, 0deg), #ff7766 5%, #ffda83 23%, #d8ff99 39%, #72ffc9 53%, #83dcff 68%, #a393ff 84%, #f3a7f3);
    filter: brightness(var(--prism-gain, 1)) blur(var(--beam-blur, 2px));
    transform: rotate(var(--beam-angle)) skew(var(--beam-skew, 0deg)) scale(calc(var(--beam-scale)*var(--prism-size))) scaleX(var(--beam-stretch, 1));
    mask-image: radial-gradient(ellipse, black 8%, #000c 32%, #0005 55%, transparent 76%);
    -webkit-mask-image: radial-gradient(ellipse, black 8%, #000c 32%, #0005 55%, transparent 76%)
}

/* Saturated rectangular light: intensity controls coverage, never white clipping. */
.prism-light-layer {
    mix-blend-mode: normal
}

.prism-light-layer i {
    background: linear-gradient(var(--beam-spectrum, 90deg), #ff244b 0%, #ff871d 18%, #ffe629 34%, #20f16b 50%, #19cfff 67%, #6655ff 83%, #d42bff 100%);
    filter: saturate(var(--prism-saturation, 1.5)) blur(var(--beam-blur, 2px));
    mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    background-color: transparent
}

/* Directional light trails follow each patch's movement; zero disables them. */
.prism-light-trail {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: inherit;
    border-radius: inherit;
    opacity: var(--trail-opacity, 0);
    filter: blur(var(--trail-blur, 0px));
    transform: translate(var(--trail-x, 0px), var(--trail-y, 0px)) scale(1.25)
}

/* Green-led spectrum and directly adjustable elongated diffusion. */
.prism-light-layer i {
    height: var(--light-base-height, 36px) !important;
    width: calc(var(--light-base-width, 76px) + var(--light-extension, 0px));
    background: linear-gradient(var(--beam-spectrum, 90deg), #ff2857 0%, #ff5143 8%, #ff8535 16%, #ffb834 23%, #eedb43 29%, #c7e94c 35%, #94ec58 42%, #5bea70 49%, #2ae992 56%, #24dfb5 64%, #27ced6 72%, #2faeea 80%, #338bf7 90%, #2864ff 100%);
    filter: saturate(var(--prism-saturation, 1.5)) blur(calc(var(--beam-blur, 2px) + var(--length-softness, 0px)))
}

/* Preserve the source rectangle; blur a separate halo beyond its edges. */
.prism-light-layer i {
    width: var(--light-base-width, 76px);
    height: var(--light-base-height, 36px) !important;
    background: none;
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible
}

.prism-light-source {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(var(--beam-spectrum, 90deg), #ff2857 0%, #ff5143 8%, #ff8535 16%, #ffb834 23%, #eedb43 29%, #c7e94c 35%, #94ec58 42%, #5bea70 49%, #2ae992 56%, #24dfb5 64%, #27ced6 72%, #2faeea 80%, #338bf7 90%, #2864ff 100%);
    filter: saturate(var(--prism-saturation, 1.5)) blur(var(--beam-blur, 2px));
    mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    mask-composite: intersect;
    -webkit-mask-composite: source-in
}

/* Spectrum-end tails: no green is sampled into the outward diffusion. */
.prism-light-layer i {
    filter: none
}

.prism-light-source {
    position: relative;
    z-index: 1
}

.prism-light-layer i::before,
.prism-light-layer i::after {
    content: '';
    position: absolute;
    top: 8%;
    height: 84%;
    width: calc(var(--edge-tail, 0px) + 12%);
    opacity: var(--edge-tail-opacity, 0);
    pointer-events: none;
    filter: blur(var(--beam-blur, 2px));
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent)
}

.prism-light-layer i::before {
    right: 88%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 40, 87, .08) 20%, rgba(255, 40, 87, .35) 65%, #ff2857 100%)
}

.prism-light-layer i::after {
    left: 88%;
    background: linear-gradient(to right, #794cf5 0%, rgba(151, 60, 246, .35) 35%, rgba(170, 57, 238, .08) 80%, transparent 100%)
}

/* Independent diffusion from the two long sides preserves the whole spectrum. */
.prism-rainbow-sides {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: var(--rainbow-spread-opacity, 0);
    filter: blur(var(--beam-blur, 2px)) saturate(var(--prism-saturation, 1.5))
}

.prism-rainbow-sides::before,
.prism-rainbow-sides::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: calc(var(--rainbow-spread, 0px) + 12%);
    background: linear-gradient(90deg, #ff2857 0%, #ff5143 8%, #ff8535 16%, #ffb834 23%, #eedb43 29%, #c7e94c 35%, #94ec58 42%, #5bea70 49%, #2ae992 56%, #24dfb5 64%, #27ced6 72%, #2faeea 80%, #338bf7 90%, #2864ff 100%)
}

.prism-rainbow-sides::before {
    bottom: 88%;
    mask-image: linear-gradient(to bottom, transparent, #0001 20%, #0006 65%, #000), linear-gradient(to right, transparent, #000 13%, #000 87%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #0001 20%, #0006 65%, #000), linear-gradient(to right, transparent, #000 13%, #000 87%, transparent);
    mask-composite: intersect;
    -webkit-mask-composite: source-in
}

.prism-rainbow-sides::after {
    top: 88%;
    mask-image: linear-gradient(to top, transparent, #0001 20%, #0006 65%, #000), linear-gradient(to right, transparent, #000 13%, #000 87%, transparent);
    -webkit-mask-image: linear-gradient(to top, transparent, #0001 20%, #0006 65%, #000), linear-gradient(to right, transparent, #000 13%, #000 87%, transparent);
    mask-composite: intersect;
    -webkit-mask-composite: source-in
}

/* Stable ellipses with a continuous rainbow halo, avoiding a masked join. */
.prism-light-layer i {
    transform: rotate(var(--beam-angle)) scale(calc(var(--beam-scale)*var(--prism-size)));
    border-radius: 50%
}

.prism-light-source {
    border-radius: 50%;
    mask-image: radial-gradient(ellipse closest-side, #000 25%, #000c 55%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse closest-side, #000 25%, #000c 55%, transparent 100%)
}

.prism-rainbow-sides {
    inset: calc(0px - var(--rainbow-spread, 0px)) 0;
    border-radius: 50%;
    background: linear-gradient(90deg, #ff2857 0%, #ff5143 8%, #ff8535 16%, #ffb834 23%, #eedb43 29%, #c7e94c 35%, #94ec58 42%, #5bea70 49%, #2ae992 56%, #24dfb5 64%, #27ced6 72%, #2faeea 80%, #338bf7 90%, #2864ff 100%);
    mask-image: radial-gradient(ellipse closest-side, #000 15%, #000b 40%, #0004 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse closest-side, #000 15%, #000b 40%, #0004 70%, transparent 100%)
}

.prism-rainbow-sides::before,
.prism-rainbow-sides::after {
    display: none
}

.prism-light-layer i::before {
    right: 65%;
    width: calc(var(--edge-tail, 0px) + 35%)
}

.prism-light-layer i::after {
    left: 65%;
    width: calc(var(--edge-tail, 0px) + 35%)
}

/* Spectrum runs violet (left) to red (right). Controls follow these axes. */
.prism-light-source,
.prism-rainbow-sides {
    background: linear-gradient(270deg, #ff2857 0%, #ff5143 8%, #ff8535 16%, #ffb834 23%, #eedb43 29%, #c7e94c 35%, #94ec58 42%, #5bea70 49%, #2ae992 56%, #24dfb5 64%, #27ced6 72%, #2faeea 80%, #338bf7 90%, #2864ff 100%)
}

/* The full spectrum diffuses perpendicular to the colour axis, without widening it. */
.prism-rainbow-sides {
    inset: calc(0px - var(--rainbow-spread, 0px)) 0
}

/* End tails contain only their terminal colour, fading to transparent. */
.prism-light-layer i::before,
.prism-light-layer i::after {
    top: 8%;
    bottom: auto;
    height: 84%;
    width: calc(var(--edge-tail, 0px) + 35%);
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
    mask-composite: add;
    -webkit-mask-composite: source-over
}

.prism-light-layer i::before {
    left: auto;
    right: 65%;
    background: linear-gradient(to right, rgba(40, 100, 255, 0), rgba(40, 100, 255, .08) 20%, rgba(40, 100, 255, .35) 65%, #2864ff)
}

.prism-light-layer i::after {
    left: 65%;
    right: auto;
    background: linear-gradient(to right, #ff2857, rgba(255, 40, 87, .35) 35%, rgba(255, 40, 87, .08) 80%, rgba(255, 40, 87, 0))
}

/* Tail intensity increases colour coverage without clipping it to white. */
.prism-light-layer i::before,
.prism-light-layer i::after {
    opacity: calc(var(--edge-tail-opacity, 0)*var(--tail-strength, 1))
}

.prism-light-layer i::before {
    background: linear-gradient(to left, #2864ff var(--tail-core, 0%), rgba(40, 100, 255, .35) 65%, rgba(40, 100, 255, 0) 100%)
}

.prism-light-layer i::after {
    background: linear-gradient(to right, #ff2857 var(--tail-core, 0%), rgba(255, 40, 87, .35) 65%, rgba(255, 40, 87, 0) 100%)
}

/* Retain intermediate rainbow hues instead of clipping colour channels. */
.prism-light-source {
    filter: blur(var(--beam-blur, 2px))
}

.prism-rainbow-sides {
    filter: blur(var(--beam-blur, 2px))
}

/* Temporary broad, feathered spectral light spilling in from the upper left. */
.corner-prism {
    position: fixed;
    left: 0;
    top: 0;
    width: 50vw;
    height: 100vh;
    width: 50dvw;
    height: 100dvh;
    mask-image: linear-gradient(to right, #000 0%, #000 45%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 45%, transparent 100%);
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: screen
}

.corner-prism[hidden] {
    display: none
}

.corner-prism::before {
    content: '';
    position: absolute;
    left: -52%;
    top: -72%;
    width: 200%;
    height: 290%;
    transform: rotate(-24deg);
    transform-origin: 35% 20%;
    background: linear-gradient(100deg, transparent 8%, rgba(255, 68, 42, .85) 20%, rgba(255, 187, 74, .9) 29%, rgba(255, 235, 140, .85) 34%, rgba(105, 229, 96, .55) 43%, rgba(30, 185, 130, .4) 51%, rgba(66, 136, 255, .65) 59%, rgba(141, 84, 255, .65) 65%, transparent 77%);
    mask-image: radial-gradient(ellipse at 35% 22%, #000 12%, #000b 40%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 35% 22%, #000 12%, #000b 40%, transparent 72%);
    filter: blur(24px)
}


/* Five category-coloured tracks centred on the sixteen-stop path. */
.orbit-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
    z-index: 1;
    fill: none;
    stroke: var(--accent);
    stroke-width: var(--ring-thickness, 2.5px);
    opacity: .32;
    mix-blend-mode: screen
}

.orbit-lines::before {
    content: none
}

.orbit-lines circle {
    vector-effect: non-scaling-stroke
}

.dial,
.show-card,
.category-watermark {
    z-index: 2
}

/* Header-free stage with controls alongside the introduction. */
main {
    padding-top: 0;
    align-items: start;
    min-height: 0
}

.intro {
    align-self: center
}

@media(max-width:700px) {
    main {
        padding-top: 0
    }

    .experience {
        order: -1
    }

    .intro {
        padding-top: 24px
    }

    .edition {
        display: block;
        margin-top: 20px
    }
}

/* Reserve viewport height for navigation and the programme footer. */
.orb {
    width: min(100%, 740px, calc(100dvh - 180px))
}

main {
    padding-bottom: 8px
}

footer {
    min-height: 64px;
    margin-top: 8px
}

@media(min-width:701px) and (max-height:900px) {
    .intro {
        padding-top: 12px;
        padding-bottom: 12px
    }

    h1 {
        font-size: clamp(38px, 4vw, 60px);
        margin: 18px 0;
        line-height: 1.25
    }

    .categories {
        margin-top: 24px
    }

    .edition {
        margin-top: 22px
    }
}

@media(max-width:700px) {
    .orb {
        width: min(100%, calc(100dvh - 420px))
    }

    .intro {
        padding-top: 8px;
        padding-bottom: 8px
    }

    h1 {
        font-size: 28px;
        margin: 10px 0
    }

    .categories {
        margin-top: 12px
    }

    .cat-description {
        margin-top: 8px;
        margin-bottom: 8px
    }

    .edition {
        margin-top: 10px
    }

    .orbit-footer {
        margin-bottom: 4px
    }

    footer {
        min-height: 54px
    }
}

/* Put spare viewport space above the composition, not below the footer. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh
}

main {
    width: 100%;
    flex: none;
    margin: 0 auto
}

footer {
    width: calc(100% - 8%);
    max-width: calc(1600px - 8%);
    margin: 8px auto 0;
    flex: none
}

@media(max-width:700px) {
    footer {
        width: calc(100% - 6%);
        margin: 0 auto
    }
}

body::after {
    content: '';
    display: block;
    order: -1;
    flex: 1 0 0
}

/* Keep the programme layout aligned to the site grid and inside its iframe viewport. */
html,
body {
    height: 100%;
    min-height: 0
}

body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden
}

body::after {
    display: none
}

main {
    width: 100%;
    max-width: 1140px;
    flex: 1 1 0;
    min-height: 0;
    margin: 0 auto;
    padding: 8px 24px;
    grid-template-columns: minmax(0, .35fr) minmax(0, .65fr);
    align-items: center
}

.experience {
    min-height: 0
}

.orb {
    width: min(100%, 740px, calc(100dvh - 180px));
    max-height: 100%;
}

footer {
    width: calc(100% - 48px);
    max-width: 1140px;
    height: 64px;
    min-height: 64px;
    flex: 0 0 64px;
    margin: 0 auto
}

@media(max-width:700px) {
    body {
        height: 100dvh;
        overflow: hidden
    }

    main {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        width: 100%;
        max-width: none;
        min-height: 0;
        padding: 4px 12px 0;
        gap: 0
    }

    .experience {
        order: -1;
        flex: 0 1 auto;
        width: 100%;
        min-height: 0
    }

    .orb {
        width: min(100%, max(180px, calc(100dvh - 370px)));
        margin: 0 auto
    }

    .intro {
        flex: 0 0 auto;
        width: 100%;
        padding: 6px 4px
    }

    h1 {
        font-size: 28px;
        line-height: 1.12;
        margin: 8px 0
    }

    .categories {
        margin-top: 8px
    }

    .cat-description {
        min-height: 0;
        margin: 6px auto
    }

    .edition {
        margin-top: 6px;
        line-height: 1.5
    }

    .orbit-footer {
        margin: 0 0 4px
    }

    footer {
        width: calc(100% - 24px);
        height: 54px;
        min-height: 54px;
        flex: 0 0 54px;
        margin: 0 auto
    }
}

/* Pin the actual programme navigation to the bottom of this page/iframe viewport. */
main {
    padding-bottom: 72px
}

footer {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: auto
}

@media(max-width:700px) {
    main {
        padding-bottom: 62px
    }
}



/* Let the circle use the full visual column; put its controls under the intro tools. */
main {
    grid-template-columns: minmax(0, .25fr) minmax(0, .75fr)
}

.orb {
    width: min(100%, calc(100dvh - 80px));
    max-width: none
}

.intro .orbit-footer {
    justify-content: flex-start;
    width: fit-content;
    margin: 8px 0 0;
    padding: 0;
    background: transparent
}

@media(min-width:1001px) {
    .intro h1 {
        font-size: clamp(42px, 3.8vw, 52px);
        letter-spacing: 2px
    }
}

@media(min-width:701px) and (max-width:1000px) {
    main {
        grid-template-columns: minmax(0, .32fr) minmax(0, .68fr)
    }
}

@media(max-width:700px) {
    .orb {
        width: min(100%, max(180px, calc(100dvh - 370px)))
    }

    .intro .orbit-footer {
        justify-content: center;
        margin: 6px auto 0
    }
}


/* Keep the programme footer at the viewport bottom when content fits, and at the banner end when it overflows. */
html {
    height: 100%;
    min-height: 100%
}

body {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto
}

main {
    flex: 1 0 auto;
    min-height: 0;
    padding: 8px 24px
}

footer {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: 20;
    flex: 0 0 64px;
    margin: 0 auto
}

@media(max-width:700px) {
    main {
        flex: 1 0 auto;
        padding: 4px 12px 0
    }

    footer {
        flex-basis: 54px
    }
}

/* V4 production copy layout and category palette. */
.intro {
    max-width: 430px
}

h1 {
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 1px;
    margin: 16px 0
}

.intro-copy {
    font-size: clamp(12px, 1.05vw, 15px);
    line-height: 1.72;
    letter-spacing: .25px;
    color: #ddd7e3;
    margin: 0 0 13px
}

.edition {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: .35px
}

.categories {
    margin-top: 14px
}

.cat-description {
    min-height: 0;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.75
}

.closing-copy {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.65;
    color: #e7e0ec
}

.english-tagline {
    margin: 7px 0 0;
    font-size: 11px;
    letter-spacing: .7px;
    color: #aaa1b4
}

@media(max-width:1000px) {
    .intro-copy {
        font-size: 12px
    }

    .edition {
        font-size: 11px
    }

    .cat-description {
        font-size: 12px
    }

    .closing-copy {
        font-size: 12px
    }
}

@media(max-width:700px) {
    .intro {
        max-width: 560px
    }

    .intro-copy {
        display: block;
        font-size: 12px;
        line-height: 1.6
    }

    .edition {
        display: block;
        margin-top: 8px;
        font-size: 11px
    }

    .categories {
        margin-top: 12px
    }

    .cat-description {
        font-size: 12px
    }

    .closing-copy {
        margin-top: 10px;
        font-size: 12px
    }

    .english-tagline {
        margin-top: 4px;
        font-size: 10px
    }

    .orbit-footer {
        margin: 8px 0 10px
    }
}

/* Selected category: solid category colour with black label. */
.categories button.active,
.categories button.active:hover {
    color: #000;
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 0 18px color-mix(in srgb, var(--accent) 25%, transparent);
}

.cat-description {
    color: var(--accent);
}

/* Match the footer category label to the selected section. */
.footer-brand {
    color: var(--accent);
}

/* English V4 title and copy. */
.intro h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: .2px
}

@media(max-width:700px) {
    .intro h1 br {
        display: initial
    }
}

/* Keep one large, readable category circle visible at a time. */
.categories {
    align-items: center;
    min-height: 148px
}

.categories button:not(.active) {
    display: none
}

.categories button.active,
.categories button.active:hover {
    display: grid;
    place-items: center;
    width: 148px;
    min-width: 148px;
    height: 148px;
    padding: 8px;
    border-radius: 50%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    white-space: nowrap
}

@media(max-width:700px) {
    .categories {
        min-height: 132px
    }

    .categories button.active,
    .categories button.active:hover {
        width: 132px;
        min-width: 132px;
        height: 132px;
        font-size: 13px
    }
}

/* Show all four categories as a vertical stack of rounded rectangles. */
.categories {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 0;
    margin-top: 18px
}

.categories button,
.categories button.active,
.categories button.active:hover {
    display: flex;
    width: 148px;
    min-width: 148px;
    height: 38px;
    min-height: 38px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    white-space: nowrap
}

.categories button:not(.active) {
    color: #f7f6fa;
    background: #ffffff08;
    border-color: #ffffff35;
    box-shadow: none
}

.categories button:not(.active):hover {
    background: #ffffff18
}

@media(max-width:700px) {
    .categories {
        flex-direction: column;
        align-items: center;
        gap: 7px;
        min-height: 0;
        margin-top: 12px
    }

    .categories button,
    .categories button.active,
    .categories button.active:hover {
        width: 148px;
        min-width: 148px;
        height: 36px;
        min-height: 36px;
        font-size: 11px
    }
}

/* English edition typography. */
body,
body * {
    font-family: 'Jost', 'Lato', sans-serif !important
}

/* Two compact paragraphs and a 2 × 2 category selector. */
.intro-copy p {
    margin: 0
}

.intro-copy p + p {
    margin-top: 10px
}

.categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    justify-content: start;
    width: min(100%, 320px);
    min-height: 0;
    margin-top: 18px
}

.categories button,
.categories button.active,
.categories button.active:hover {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .4px;
    white-space: nowrap
}

.categories button:not(.active) {
    display: flex;
    color: #f7f6fa;
    background: #ffffff18;
    border-color: #ffffff65;
    box-shadow: inset 0 1px #ffffff12
}

.categories button:not(.active):hover {
    background: #ffffff28
}

@media(max-width:700px) {
    .categories {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 148px));
        justify-content: center;
        gap: 7px;
        width: 100%;
        margin-top: 12px
    }

    .categories button,
    .categories button.active,
    .categories button.active:hover {
        width: 100%;
        height: 36px;
        min-height: 36px;
        font-size: 11px
    }
}

/* Distinct square action links for programme details and ticket purchase. */
.dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 28px
}

.dialog-actions .performance-details-btn,
.dialog-actions .buy-ticket-btn {
    display: inline-flex;
    flex: 0 0 185px;
    width: 185px;
    min-width: 185px;
    white-space: nowrap;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 0;
    border-radius: 0;
    text-decoration: none;
    text-align: center;
    letter-spacing: .4px;
    line-height: 1.25
}

.dialog-actions .performance-details-btn {
    display: none;
    background: #000;
    color: var(--accent);
    border: 1px solid var(--accent)
}

.dialog-actions .performance-details-btn:hover {
    background: var(--accent);
    color: #FFFFFF
}

.dialog-actions .buy-ticket-btn {
    background: #F84045;
    color: #FFFFFF
}

.dialog-actions .buy-ticket-btn:hover {
    background: #FFFFFF;
    color: #F84045
}

.performer-list a,
.choreographer-list a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px
}

.performer-list a:hover,
.choreographer-list a:hover {
    text-decoration-color: var(--accent)
}


/* Programme brief card uses a solid black surface. */
#detailDialog,
#detailDialog .dialog-content {
    background: #000
}

#detailDialog .dialog-art {
    background-color: #000
}

@media(max-width:700px) {
    .dialog-actions {
        flex-wrap: wrap
    }

    .dialog-actions .buy-ticket-btn {
        margin-left: 0
    }
}

#detailDialog .dialog-content dt {
    color: #C7B299;
    text-transform: uppercase
}

#detailDialog .dialog-content dt {
    margin-bottom: 0
}

.date-separator {
    color: #C7B299;
    padding: 0 .4em
}


/* Production show-card arrows are glyph-only. */
#detailDialog .detail-nav {
    position: absolute;
    z-index: 4;
    top: 70%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #fff;
    font: 40px/1 'Jost', sans-serif;
    cursor: pointer;
    transform: translateY(-50%);
}
#detailDialog .detail-nav:hover,
#detailDialog .detail-nav:focus,
#detailDialog .detail-nav:focus-visible,
#detailDialog .detail-nav:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--accent);
}
#detailDialog .detail-nav-prev { left: 14px; }
#detailDialog .detail-nav-next { right: 14px; }
@media (max-width: 600px) {
    #detailDialog .detail-nav { width: 40px; height: 40px; }
    #detailDialog .detail-nav-prev { left: 6px; }
    #detailDialog .detail-nav-next { right: 6px; }
}

/* One shared WordPress image node is used by the wheel and the open show card. */
#detailDialog .dialog-art {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #050609;
}
#detailDialog .dialog-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#detailDialog .dialog-art::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, #000, transparent 48%);
}
