/* 33 Σκαλιά · a tribute to Giorgos Mazonakis
   One deliberate arc: ink dark at the door, gold light at the top. */

:root {
    --ink: #07050a;
    --ink-2: #120c10;
    --oxblood: #4a0f12;
    --ember: #e8772e;
    --smoke: #6d6268;
    --navy: #0d1a33;
    --lamp: #e9b561;
    --royal: #1e3a78;
    --rose: #d9a38c;
    --cream: #fbf6ea;
    --cream-2: #f1e6cc;
    --gold: #d9ad5b;
    --gold-hi: #f6dfa2;
    --gold-lo: #9a7026;
    --text: #efe6d6;
    --text-dim: #b9ab98;
    --dark-text: #2a1d10;
    --dark-dim: #5d4a33;
    --focus: #ffd98a;
    --dock-h: 92px;
    --card-w: 360px;
    --card-h: 447px;
    --display: "GFS Didot", "Didot", "Bodoni 72", Georgia, serif;
    --body: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--ink);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
html.locked, html.locked body { overflow: hidden; height: 100%; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--body);
    font-size: 1.125rem;
    line-height: 1.5;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--gold-hi); text-underline-offset: .18em; }
button { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: 2px;
}

.vh {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
    position: fixed; left: 12px; top: 12px; z-index: 100;
    padding: .5em .9em;
    background: var(--cream); color: var(--dark-text);
    transform: translateY(-160%);
    transition: transform .2s;
}
.skip:focus { transform: none; }

.nojs {
    position: fixed; inset: auto 16px 16px 16px; z-index: 60;
    padding: 1em; background: var(--cream); color: var(--dark-text);
}

/* =================================================================== DOOR */

.door {
    position: fixed; inset: 0; z-index: 40;
    height: 100vh; height: 100dvh;
    overflow: hidden;
    background: #030203;
    perspective: 1400px;
    transition: opacity 1.1s ease 2.2s, visibility 0s linear 3.3s;
}
.door.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.door.is-gone { display: none; }

/* The painting keeps its own aspect ratio and covers the screen, so the leaves
   and the medallion can be placed in percentages of the painting itself. */
.door-frame {
    position: absolute; left: 50%; top: 50%;
    width: max(100vw, calc(100vh * 1376 / 768));
    width: max(100vw, calc(100dvh * 1376 / 768));
    aspect-ratio: 1376 / 768;
    transform: translate(-50%, -50%);
    filter: brightness(.82);
    animation: door-wake 3.2s ease-out both;
}
@keyframes door-wake { from { filter: brightness(.25); } to { filter: brightness(.82); } }

.door-wall, .candle {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: block;
}
.door-wall { z-index: 2; }
.candle { z-index: 3; mix-blend-mode: screen; pointer-events: none; }

.door-light {
    position: absolute; z-index: 0;
    left: 39.971%; top: 15.365%; width: 20.64%; height: 71.615%;
    background:
        radial-gradient(60% 45% at 50% 55%, #fff8e6 0%, #ffd98a 30%, #d9892e 62%, #2a1206 100%);
    opacity: 0;
    transition: opacity 1.2s ease .35s;
}
.leaf {
    position: absolute; z-index: 1;
    top: 15.365%; height: 71.615%;
    overflow: hidden;
    transition: transform 2.1s cubic-bezier(.55, .05, .25, 1) .15s;
    will-change: transform;
}
.leaf img { display: block; width: 100%; height: 100%; }
.leaf-l { left: 39.971%; width: 10.174%; transform-origin: 0 50%; transform: perspective(1400px) rotateY(0deg); }
.leaf-r { left: 50.145%; width: 10.465%; transform-origin: 100% 50%; transform: perspective(1400px) rotateY(0deg); }

/* The medallion: centred on the seam, split between the two leaves. */
.medal { position: absolute; top: 30%; height: 37.091%; overflow: visible; }
.leaf-l .medal { left: 25.714%; width: 145.714%; }
.leaf-r .medal { left: -72.222%; width: 141.667%; }

.door.is-open .leaf-l { transform: perspective(1400px) rotateY(104deg); }
.door.is-open .leaf-r { transform: perspective(1400px) rotateY(-104deg); }
.door.is-open .door-light { opacity: 1; }

.door-burst {
    position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background: radial-gradient(circle at 50% 48%, #fffaf0 0%, #ffe3a6 22%, rgba(233, 150, 60, .75) 45%, rgba(40, 14, 4, 0) 75%);
    opacity: 0; transform: scale(.2);
    transition: opacity 1.3s ease 1.1s, transform 2s cubic-bezier(.2, .7, .2, 1) 1s;
}
.door.is-open .door-burst { opacity: 1; transform: scale(2.6); }

.door-copy {
    position: absolute; z-index: 6;
    left: 0; right: 0; bottom: 0;
    padding: 18vh 16px max(20px, env(safe-area-inset-bottom));
    text-align: center;
    background: linear-gradient(to top, rgba(3, 2, 3, .96) 0%, rgba(3, 2, 3, .86) 45%, rgba(3, 2, 3, 0) 100%);
    transition: opacity .8s ease;
    animation: rise 1.6s ease-out .6s both;
}
.door.is-open .door-copy { opacity: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.door-kicker {
    margin: 0 0 .4em;
    font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
    color: var(--gold);
}
.door-copy h1 {
    margin: 0;
    font-family: var(--display); font-weight: 400;
    font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1;
    color: var(--gold-hi);
    text-shadow: 0 0 28px rgba(233, 150, 60, .35);
}
.door-copy h1 .sub {
    display: block; margin-top: .45em;
    font-family: var(--body); font-size: clamp(1rem, 2.4vw, 1.25rem);
    letter-spacing: .06em; color: var(--text);
}
.door-line { margin: 1.1em 0 1.2em; font-size: 1.15rem; }
.door-line [lang="el"] { font-family: var(--display); font-size: 1.3em; color: var(--gold-hi); }
.door-line .en { color: var(--text-dim); font-style: italic; }

.door-btn {
    appearance: none; cursor: pointer;
    padding: .8em 1.6em;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(246, 223, 162, .18), rgba(154, 112, 38, .12));
    color: var(--gold-hi);
    font-size: 1.1rem; letter-spacing: .04em;
    box-shadow: 0 0 0 0 rgba(246, 223, 162, .5), inset 0 0 18px rgba(246, 223, 162, .12);
    transition: background .3s, box-shadow .3s, color .3s;
    animation: breathe 3.6s ease-in-out infinite;
}
.door-btn [lang="el"] { font-family: var(--display); }
.door-btn .slash { opacity: .5; margin: 0 .2em; }
.door-btn:hover, .door-btn:focus-visible { background: rgba(246, 223, 162, .28); color: #fff8e6; }
.door-btn:disabled { opacity: .45; cursor: progress; animation: none; }
@keyframes breathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(246, 223, 162, .0), inset 0 0 18px rgba(246, 223, 162, .12); }
    50% { box-shadow: 0 0 34px 2px rgba(246, 223, 162, .28), inset 0 0 18px rgba(246, 223, 162, .2); }
}
.door-small { margin: 1em auto 0; max-width: 34em; font-size: .9rem; color: var(--text-dim); }

@media (min-width: 1000px) and (min-aspect-ratio: 4/3) {
    .door-copy {
        left: 0; right: auto; top: 0; width: min(34vw, 460px);
        padding: 0 3vw 9vh 4vw;
        display: flex; flex-direction: column; justify-content: flex-end;
        text-align: left;
        background: linear-gradient(to right, rgba(3, 2, 3, .94) 0%, rgba(3, 2, 3, .78) 70%, rgba(3, 2, 3, 0) 100%);
    }
    .door-small { margin-left: 0; }
}
@media (max-aspect-ratio: 3/4) {
    .door-frame { top: 42%; }
}

/* =================================================================== ASCENT */

.ascent { position: relative; z-index: 1; }

.stage {
    position: fixed; inset: 0;
    height: 100vh; height: 100dvh;
    overflow: hidden;
    background: var(--ink);
    contain: strict;
}
.plates { position: absolute; inset: 0; }
.plate {
    position: absolute; inset: -4% -2%;
    width: 104%; height: 108%;
    max-width: none;
    object-fit: cover;
    opacity: 0;
    will-change: opacity, transform;
}
.veil {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(120% 90% at 55% 45%, rgba(7, 5, 10, 0) 30%, rgba(7, 5, 10, .72) 100%),
        linear-gradient(to bottom, rgba(7, 5, 10, .25), rgba(7, 5, 10, .55));
    transition: opacity 1s;
}
body[data-realm="dawn"] .veil { opacity: .7; }
body[data-realm="heaven"] .veil {
    opacity: 1;
    background: radial-gradient(110% 90% at 55% 45%, rgba(251, 246, 234, 0) 35%, rgba(251, 246, 234, .5) 100%);
}

.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.viewport {
    position: absolute; inset: 0 0 var(--dock-h) 0;
    perspective: 1500px;
    perspective-origin: 57% 46%;
    transform-style: preserve-3d;
}
[data-mode="column"] .viewport, [data-mode="fade"] .viewport { perspective: none; perspective-origin: 50% 50%; }

.light {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(90% 80% at 50% 45%, #fffdf6 0%, #fbf6ea 55%, #f6ecd4 100%);
    opacity: 0;
}

/* ---- the threshold (step zero) */
.threshold {
    position: absolute; left: 0; top: 0;
    width: min(640px, calc(100vw - 32px));
    padding: 1.4rem 1.6rem 1.6rem;
    text-align: left;
    background: rgba(10, 6, 8, .72);
    border: 1px solid rgba(217, 173, 91, .35);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    backdrop-filter: blur(3px);
    will-change: transform, opacity;
}
.threshold:focus { outline: none; }
.realm-name {
    margin: 0 0 .9rem;
    font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.quote { margin: 0 0 1.1rem; padding: 0; }
.quote p[lang="el"] {
    margin: 0;
    font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.35;
    color: var(--gold-hi);
}
.quote .quote-en { margin: .5em 0 0; font-style: italic; color: var(--text); }
.quote footer { margin-top: .5em; font-size: .88rem; color: var(--text-dim); }
.quote cite { font-style: normal; }
.intro p { margin: 0 0 .75em; font-size: 1.02rem; }
.intro a { color: var(--gold-hi); }
.how { margin: .9rem 0 0; font-size: .92rem; color: var(--gold); letter-spacing: .02em; }
.alpha {
    position: absolute; right: 1.2rem; bottom: .4rem; margin: 0;
    font-family: var(--display); font-size: 3.4rem; line-height: 1; color: rgba(246, 223, 162, .35);
}

/* ---- a step */
.step {
    position: absolute; left: 0; top: 0;
    width: var(--card-w); height: var(--card-h);
    transform-style: preserve-3d;
    will-change: transform, opacity;
    visibility: hidden;
}
.step.is-near { visibility: visible; }

.frame {
    position: absolute; inset: 0; margin: 0;
    padding: 9px;
    background:
        linear-gradient(135deg, #f3d58c 0%, #9a6f24 18%, #e5c173 34%, #7a531a 52%, #e9c77c 70%, #8d6420 86%, #f0d388 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .6),
        0 24px 60px rgba(0, 0, 0, .65),
        inset 0 0 0 1px rgba(255, 240, 200, .5);
    cursor: pointer;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s ease, box-shadow .7s ease;
    filter: brightness(.66) saturate(.85);
}
.frame::after {
    content: ""; position: absolute; inset: 9px; pointer-events: none;
    box-shadow: inset 0 0 0 2px rgba(40, 22, 6, .7), inset 0 0 40px rgba(0, 0, 0, .45);
}
.frame img {
    display: block; width: 100%; height: 100%;
    object-fit: cover;
    background: #1a1014;
}
.step.is-focused .frame {
    transform: translate3d(0, -14px, 50px) scale(1.035);
    filter: brightness(1.08) saturate(1.05);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .6),
        0 40px 90px rgba(0, 0, 0, .6),
        0 0 70px rgba(246, 210, 140, .28),
        inset 0 0 0 1px rgba(255, 240, 200, .6);
}

/* The stone block each painting stands on (stair mode only). */
.block { position: absolute; left: -14%; right: -14%; top: 100%; transform-style: preserve-3d; pointer-events: none; }
.tread {
    position: absolute; left: 0; right: 0; top: 0; height: 220px;
    transform-origin: 50% 0;
    transform: rotateX(90deg);
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 1px, rgba(0, 0, 0, 0) 1px 97px),
        linear-gradient(to bottom, #120e10 0%, #3a302f 70%, #5b4b45 100%);
    box-shadow: inset 0 -2px 0 rgba(246, 223, 162, .6);
}
.riser {
    position: absolute; left: 0; right: 0; top: 0; height: 24vh;
    transform: translateZ(220px);
    opacity: .8;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 35%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 35%, transparent 100%);
    background:
        linear-gradient(to bottom, rgba(246, 223, 162, .5) 0, rgba(246, 223, 162, 0) 2px),
        linear-gradient(to bottom, #2b2325 0%, #151012 55%, rgba(10, 7, 9, 0) 100%);
    display: flex; justify-content: center; padding-top: .35em;
}
.riser .carved {
    font-family: var(--display); font-size: clamp(2rem, 4.2vh, 3rem); line-height: 1;
    color: rgba(0, 0, 0, .55);
    text-shadow: 0 1px 0 rgba(246, 223, 162, .3);
}
body[data-realm="earth"] .tread { background: linear-gradient(to bottom, #2f3a52, #121827); }
body[data-realm="earth"] .riser { background: linear-gradient(to bottom, rgba(246, 223, 162, .55) 0, rgba(246, 223, 162, 0) 2px), linear-gradient(to bottom, #26324b 0%, #0f1523 60%, rgba(7, 10, 18, 0) 100%); }
body[data-realm="dawn"] .tread { background: linear-gradient(to bottom, #d8c3ae, #9f8977); }
body[data-realm="dawn"] .riser { background: linear-gradient(to bottom, rgba(255, 244, 214, .9) 0, rgba(255, 244, 214, 0) 2px), linear-gradient(to bottom, #b89f8c 0%, #7c6a61 60%, rgba(60, 50, 60, 0) 100%); }
body[data-realm="heaven"] .tread { background: linear-gradient(to bottom, #fff7e3, #e8d6a8); }
body[data-realm="heaven"] .riser { background: linear-gradient(to bottom, #fff 0, rgba(255, 255, 255, 0) 2px), linear-gradient(to bottom, #f1e2bb 0%, #e2cd98 60%, rgba(240, 225, 190, 0) 100%); }
body[data-realm="dawn"] .riser .carved, body[data-realm="heaven"] .riser .carved { color: rgba(90, 60, 30, .45); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }

/* ---- captions */
.cap {
    position: absolute; top: 6%;
    right: calc(100% + 40px);
    width: min(30vw, 400px);
    text-align: right;
    opacity: var(--near, 0);
    transition: opacity .2s linear;
    pointer-events: auto;
}
.cap-panel > * { margin: 0; }
[data-mode="stair"] .cap { transform: rotateY(8deg); transform-origin: 100% 50%; }
.num {
    font-family: var(--display); font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1;
    color: var(--gold-hi);
    text-shadow: 0 0 30px rgba(233, 150, 60, .35);
}
.summit {
    display: inline-block; margin: .6em 0 .1em;
    padding: .18em .7em;
    border: 1px solid var(--gold); border-radius: 999px;
    font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold-hi);
    background: rgba(154, 112, 38, .25);
}
.cap h3 {
    margin-top: .35em;
    font-family: var(--display); font-weight: 400;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.1;
    color: #fff4dc;
}
.lat { margin-top: .2em !important; font-style: italic; font-size: 1.12rem; color: var(--text); }
.meta { margin-top: .5em !important; font-size: .95rem; letter-spacing: .04em; color: var(--text-dim); }
.meta [lang="el"] { font-style: normal; }
.mood { margin-top: .8em !important; font-size: 1.08rem; line-height: 1.45; color: var(--text); }
.actions { margin-top: 1em !important; display: flex; gap: .6em; justify-content: flex-end; flex-wrap: wrap; }
.play {
    appearance: none; cursor: pointer;
    padding: .45em 1.1em;
    border: 1px solid var(--gold); border-radius: 999px;
    background: rgba(12, 8, 6, .55);
    color: var(--gold-hi); font-size: .98rem;
}
.play:hover, .play:focus-visible { background: rgba(154, 112, 38, .45); color: #fff; }
.play .tri { display: inline-block; margin-right: .45em; font-size: .8em; }
.yt { align-self: center; font-size: .95rem; }

.cap-panel {
    padding: 1rem 1.2rem 1.1rem;
    background: rgba(9, 6, 8, .62);
    border-right: 1px solid rgba(217, 173, 91, .5);
    backdrop-filter: blur(4px);
}
body[data-realm="earth"] .cap-panel { background: rgba(6, 11, 24, .64); }
body[data-realm="dawn"] .cap-panel { background: rgba(14, 26, 60, .66); }
body[data-realm="heaven"] .cap-panel { background: rgba(251, 246, 234, .86); border-color: var(--gold-lo); }
body[data-realm="heaven"] .cap h3 { color: var(--dark-text); }
body[data-realm="heaven"] .lat, body[data-realm="heaven"] .mood { color: var(--dark-text); }
body[data-realm="heaven"] .meta { color: var(--dark-dim); }
body[data-realm="heaven"] .num { color: #8a5f19; text-shadow: 0 0 24px rgba(255, 255, 255, .9); }
body[data-realm="heaven"] .summit { color: #6e4a10; }
body[data-realm="heaven"] .play { background: rgba(255, 250, 238, .9); color: #6e4a10; border-color: var(--gold-lo); }
body[data-realm="heaven"] .play:hover, body[data-realm="heaven"] .play:focus-visible { background: #f3dfae; }
body[data-realm="heaven"] .cap a { color: #6e4a10; }
body[data-realm="heaven"] { --focus: #6e3d00; }
.omega-mark {
    display: block; margin-top: .3em !important;
    font-family: var(--display); font-size: 2.6rem; line-height: 1; color: rgba(138, 95, 25, .5);
}

/* ---- the three summits: icon frames and a halo */
.step.is-peak .frame {
    padding: 16px;
    background: conic-gradient(from 45deg, #fff1bf, #c8912f, #ffe7a3, #9a6a1c, #fff1bf, #c8912f, #ffe7a3, #9a6a1c, #fff1bf);
    border: 3px solid #fbe6a7;
    outline: 1px solid rgba(90, 50, 10, .8);
    outline-offset: -8px;
}
.step.is-peak .frame::after { inset: 16px; box-shadow: inset 0 0 0 2px #fbe6a7, inset 0 0 0 4px #9d1f18, inset 0 0 50px rgba(0, 0, 0, .35); }
.halo {
    position: absolute; left: 50%; top: 42%;
    width: 185%; aspect-ratio: 1;
    transform: translate(-50%, -50%) translateZ(-30px);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 236, 170, .75) 0%, rgba(245, 180, 70, .45) 28%, rgba(220, 110, 30, .18) 48%, rgba(220, 110, 30, 0) 66%);
    pointer-events: none;
    opacity: .55;
    transition: opacity .8s;
}
.halo::before {
    content: ""; position: absolute; inset: 21%;
    border-radius: 50%;
    border: 2px solid rgba(255, 231, 163, .55);
    box-shadow: 0 0 0 10px rgba(255, 231, 163, .08), 0 0 0 22px rgba(255, 231, 163, .05);
}
.step.is-peak.is-focused .halo { opacity: 1; animation: halo 4.5s ease-in-out infinite; }
@keyframes halo { 50% { transform: translate(-50%, -50%) translateZ(-30px) scale(1.06); filter: brightness(1.15); } }

/* ---- column mode (phones) and fade mode (reduced motion) */
[data-mode="column"] .step, [data-mode="fade"] .step { transform-style: flat; }
[data-mode="column"] .block, [data-mode="fade"] .block { display: none; }
[data-mode="column"] .cap, [data-mode="fade"] .cap {
    top: calc(100% + 10px); right: auto; left: 50%;
    width: min(92vw, 560px);
    transform: translateX(-50%);
    text-align: center;
}
[data-mode="column"] .cap-panel, [data-mode="fade"] .cap-panel {
    padding: .55rem .8rem .7rem; border-right: 0; border-top: 1px solid rgba(217, 173, 91, .5);
}
[data-mode="column"] .actions, [data-mode="fade"] .actions { justify-content: center; }
[data-mode="column"] .num, [data-mode="fade"] .num { font-size: 2rem; display: inline; margin-right: .3em; }
[data-mode="column"] .summit, [data-mode="fade"] .summit { margin: 0 0 0 .2em; vertical-align: .5em; }
[data-mode="column"] .cap h3, [data-mode="fade"] .cap h3 { font-size: 1.45rem; }
[data-mode="column"] .lat, [data-mode="fade"] .lat { font-size: 1rem; }
[data-mode="column"] .meta, [data-mode="fade"] .meta { font-size: .86rem; margin-top: .25em !important; }
[data-mode="column"] .mood, [data-mode="fade"] .mood { font-size: .96rem; margin-top: .35em !important; }
[data-mode="column"] .actions, [data-mode="fade"] .actions { margin-top: .5em !important; }
[data-mode="column"] .omega-mark, [data-mode="fade"] .omega-mark { display: none; }
[data-mode="column"] .step.is-focused .frame { transform: translateY(-6px) scale(1.02); }
[data-mode="fade"] .step.is-focused .frame { transform: none; }
[data-mode="column"] .halo { width: 150%; }

/* ---- the realm label and the prayer rope */
.realm {
    position: absolute; left: 16px; top: max(14px, env(safe-area-inset-top));
    margin: 0;
    font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
    padding: .3em .7em;
    border-radius: 999px;
    background: rgba(7, 5, 10, .5);
    color: var(--gold);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
    transition: color .8s, opacity .3s;
}
body[data-realm="heaven"] .realm { color: #6e4a10; background: rgba(251, 246, 234, .82); text-shadow: none; }

.rope {
    position: absolute; right: 12px; top: 50%;
    margin: 0; padding: 0; list-style: none;
    display: flex; flex-direction: column-reverse; gap: 5px;
    transform: translateY(calc(-50% - var(--dock-h) / 2));
}
.rope li {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(20, 12, 10, .6);
    border: 1px solid rgba(217, 173, 91, .55);
    transition: background .4s, box-shadow .4s, transform .4s;
}
.rope li.on { background: var(--gold); box-shadow: 0 0 8px rgba(246, 210, 140, .8); }
.rope li.peak { border-color: #fbe6a7; }
.rope li.cur { transform: scale(1.5); background: #fff4d6; }
@media (max-height: 520px) { .rope { display: none; } }

.scroller { position: relative; width: 1px; pointer-events: none; }

/* =================================================================== FINALE */

.finale {
    position: relative; z-index: 2;
    background: var(--cream);
    color: var(--dark-text);
    color-scheme: light;
}
.finale a { color: #7a4c0c; }
.finale :focus-visible { outline-color: #6e3d00; }
.finale-hero {
    position: relative;
    height: 100vh; height: 100svh;
    overflow: hidden;
    background: var(--cream);
}
.finale-hero::before, .finale-hero::after {
    content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none;
}
.finale-hero::before { top: 0; height: 32%; background: linear-gradient(to bottom, var(--cream), rgba(251, 246, 234, 0)); }
.finale-hero::after { bottom: 0; height: 26%; background: linear-gradient(to top, var(--cream), rgba(251, 246, 234, 0)); }
.finale-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

.finale-body {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 0 16px calc(var(--dock-h) + 48px);
    text-align: center;
}
.quote-final p[lang="el"] { font-size: clamp(2rem, 6vw, 3.4rem); color: #6e4a10; line-height: 1.1; }
.quote-final .quote-en { font-size: 1.25rem; color: var(--dark-text); }
.quote-final footer { color: var(--dark-dim); }

.memory {
    margin: 2.6rem 0 .2rem;
    font-family: var(--display); font-weight: 400;
    font-size: clamp(2.1rem, 6vw, 3.2rem); line-height: 1.1; color: var(--dark-text);
}
.memory-en { display: block; margin-top: .3em; font-family: var(--body); font-style: italic; font-size: 1.1rem; color: var(--dark-dim); }
.name { margin: 1.6rem 0 0; font-family: var(--display); font-size: 1.7rem; letter-spacing: .08em; }
.dates { margin: .2rem 0 0; color: var(--dark-dim); }
.omega { margin: 1rem 0 0; font-family: var(--display); font-size: 3.6rem; line-height: 1; color: rgba(138, 95, 25, .45); }

.index { margin: 3rem 0 0; text-align: left; }
.index h3, .credits h3 {
    margin: 0 0 .8rem;
    font-family: var(--display); font-weight: 400; font-size: 1.5rem; text-align: center; color: #6e4a10;
}
.index ol {
    margin: 0; padding: 0; list-style: none;
    columns: 2 300px; column-gap: 2rem;
}
.index li { break-inside: avoid; border-bottom: 1px solid rgba(154, 112, 38, .25); }
.index a {
    display: grid; grid-template-columns: 3.1em 1fr; gap: .2em .5em;
    padding: .45em .2em;
    text-decoration: none; color: var(--dark-text);
}
.index a:hover .t, .index a:focus-visible .t { text-decoration: underline; }
.index .n { font-family: var(--display); color: #8a5f19; }
.index .t { font-family: var(--display); font-size: 1.08rem; }
.index .s { grid-column: 2; font-size: .9rem; color: var(--dark-dim); }
.index .pk { color: #9d1f18; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-left: .4em; }

.again {
    appearance: none; cursor: pointer;
    margin-top: 2rem;
    padding: .6em 1.4em;
    border: 1px solid #9a7026; border-radius: 999px;
    background: #fff9ea; color: #6e4a10;
}
.again:hover, .again:focus-visible { background: #f3dfae; }

.credits {
    margin: 3rem 0 0; padding: 1.6rem 0 0;
    border-top: 1px solid rgba(154, 112, 38, .35);
    font-size: .98rem; color: var(--dark-dim);
}
.credits p { margin: 0 0 .7em; }

/* =================================================================== DOCK */

.dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    min-height: var(--dock-h);
    padding: 6px max(16px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px) auto;
    grid-template-areas: "info embed mute";
    align-items: center; gap: 12px;
    background: linear-gradient(to top, rgba(7, 5, 10, .95), rgba(7, 5, 10, .82));
    border-top: 1px solid rgba(217, 173, 91, .35);
    backdrop-filter: blur(6px);
    color: var(--text);
}
.dock[hidden] { display: none; }
.dock-info { grid-area: info; min-width: 0; }
.dock-info p { margin: 0; }
.dock-now { font-family: var(--display); font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--gold-hi); }
.dock-num { color: var(--gold); margin-right: .3em; }
.dock-lat { font-family: var(--body); font-style: italic; font-size: .9em; color: var(--text-dim); margin-left: .35em; }
.dock-note { font-size: .85rem; color: var(--text-dim); }
.dock-embed { grid-area: embed; height: 80px; min-width: 0; }
.dock-embed iframe, #embed { display: block; width: 100%; height: 80px; border: 0; border-radius: 12px; }
#embed:empty { background: rgba(255, 255, 255, .04); border: 1px dashed rgba(217, 173, 91, .3); }
.dock-yt { grid-area: embed; justify-self: start; }
.dock-mute {
    grid-area: mute;
    appearance: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: .45em;
    padding: .5em .9em;
    border: 1px solid rgba(217, 173, 91, .6); border-radius: 999px;
    background: transparent; color: var(--gold-hi); font-size: .95rem;
}
.dock-mute:hover, .dock-mute:focus-visible { background: rgba(154, 112, 38, .3); }
.dock-mute .ico { width: 1.15em; height: 1.15em; flex: none; overflow: visible; }
.dock-mute .spk { fill: currentColor; }
.dock-mute .wave, .dock-mute .x { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dock-mute .x { display: none; }
.dock-mute[aria-pressed="true"] .wave { display: none; }
.dock-mute[aria-pressed="true"] .x { display: inline; }

@media (max-width: 759px) {
    :root { --dock-h: 128px; }
    .dock {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "info mute" "embed embed";
        gap: 4px 10px;
    }
    .dock-now { font-size: 1rem; }
    .dock-note { font-size: .78rem; }
    .dock-mute { padding: .35em .75em; font-size: .88rem; }
    .threshold { padding: 1rem 1.05rem 1.1rem; }
    .intro p { font-size: .96rem; }
    .quote p[lang="el"] { font-size: 1.12rem; }
    .alpha { font-size: 2.4rem; }
    .rope { right: 5px; gap: 3px; }
    .realm { font-size: .64rem; letter-spacing: .14em; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
    .rope li { width: 6px; height: 6px; }
}

/* Short phones: give the painting more of the screen. The preview note is
   repeated in the credits. */
@media (max-width: 759px) and (max-height: 720px) {
    .dock-note { display: none; }
    [data-mode="column"] .num { font-size: 1.6rem; }
    [data-mode="column"] .cap h3 { font-size: 1.25rem; }
    [data-mode="column"] .mood { font-size: .92rem; }
}

/* =================================================================== REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; }
    .door, .leaf, .door-burst, .door-light, .door-copy { transition-duration: .01s !important; transition-delay: 0s !important; }
    .door { transition: opacity .7s ease, visibility 0s linear .7s !important; }
    .door.is-open .leaf-l, .door.is-open .leaf-r { transform: none; }
    .door.is-open .door-burst { transform: none; opacity: 0; }
    .frame, .cap, .halo { transition: opacity .4s ease, filter .4s ease !important; }
    .step.is-focused .frame { transform: none !important; }
    .motes { display: none; }
}

/* In the finale the dock turns to light with the page. */
body[data-zone="finale"] .dock {
    background: linear-gradient(to top, rgba(251, 246, 234, .97), rgba(251, 246, 234, .9));
    border-top-color: rgba(154, 112, 38, .35);
    color: var(--dark-text);
}
body[data-zone="finale"] .dock-now { color: #6e4a10; }
body[data-zone="finale"] .dock-num { color: #8a5f19; }
body[data-zone="finale"] .dock-lat, body[data-zone="finale"] .dock-note { color: var(--dark-dim); }
body[data-zone="finale"] .dock-mute { color: #6e4a10; border-color: rgba(154, 112, 38, .6); }
body[data-zone="finale"] .dock-mute:hover, body[data-zone="finale"] .dock-mute:focus-visible { background: #f3dfae; }
body[data-zone="finale"] .dock a { color: #7a4c0c; }
body[data-zone="finale"] { --focus: #6e3d00; }

/* Spotify would not start the focused song on its own: point at the play button. */
.dock.needs-tap .dock-note { color: var(--gold-hi); }
.dock.needs-tap .dock-embed { border-radius: 12px; animation: tap-pulse 1.6s ease-in-out infinite; }
@keyframes tap-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(241, 213, 142, 0); } 50% { box-shadow: 0 0 0 4px rgba(241, 213, 142, .55); } }
@media (prefers-reduced-motion: reduce) { .dock.needs-tap .dock-embed { animation: none; box-shadow: 0 0 0 3px rgba(241, 213, 142, .6); } }

/* Back / Next: at the middle of each side on the stair; in the finale only Back, low on the left. */
.stepnav { position: fixed; inset: 0 0 var(--dock-h) 0; z-index: 25; pointer-events: none; }
.stepnav[hidden] { display: none; }
.stepnav-btn {
    pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; gap: .35em; min-width: 48px; min-height: 48px; padding: .5em 1em;
    border: 1px solid rgba(217, 173, 91, .55); border-radius: 999px; background: rgba(7, 5, 10, .55);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    color: var(--gold-hi); font: 1rem/1 var(--display); letter-spacing: .06em; cursor: pointer;
    transition: background-color .2s, border-color .2s, opacity .2s;
}
.stepnav-btn.prev { left: max(16px, env(safe-area-inset-left)); }
.stepnav-btn.next { right: max(40px, env(safe-area-inset-right)); } /* clear of the progress dots (.rope) */
.stepnav-btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stepnav-btn:hover { background: rgba(7, 5, 10, .82); border-color: var(--gold); }
.stepnav-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.stepnav-btn[aria-disabled="true"] { opacity: .28; cursor: default; }
.stepnav-btn[aria-disabled="true"]:hover { background: rgba(7, 5, 10, .55); border-color: rgba(217, 173, 91, .55); }
body[data-zone="finale"] .stepnav-btn.next { display: none; }
body[data-zone="finale"] .stepnav-btn.prev { top: auto; bottom: 12px; transform: none; }
@media (max-width: 759px) {
    .stepnav-btn { padding: .5em; justify-content: center; }
    .stepnav-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .stepnav-btn.prev { left: max(8px, env(safe-area-inset-left)); }
    .stepnav-btn.next { right: max(20px, env(safe-area-inset-right)); }
}

.dock-note .spotify-login { color: var(--gold-hi); white-space: nowrap; }
.dock.needs-tap .note-tap { color: var(--gold-hi); }
