/* Bottom bar as a compact film-edit timeline with a maximum width: a moving, looping ruler, a fixed
   red playhead and the current project framed in viewfinder corners. Each screen shows as many
   projects as fit. */
:root{--rail-red:#ff2f3b;--rail-ink:#f1ede6;--rail-line:#ffffff38;--rail-shadow:0 1px 3px #000d,0 0 10px #0009}
body>footer{position:fixed;left:50%;right:auto;bottom:10px;width:min(780px,calc(100vw - 300px));max-width:none;height:56px;transform:translateX(-50%);display:flex;align-items:stretch;gap:2px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
/* A faint floor under the whole deck, feathered so it has no visible edge. */
body>footer::before{content:'';position:absolute;z-index:-1;left:50%;bottom:-10px;width:100vw;height:92px;transform:translateX(-50%);pointer-events:none;background:linear-gradient(180deg,#07070800,#07070810 28%,#07070830 55%,#07070858 80%,#07070878)}
/* Playhead, fixed at the centre of the ruler. */
body>footer::after{content:'';position:absolute;left:50%;bottom:0;width:12px;height:8px;transform:translateX(-50%);pointer-events:none;background:var(--rail-red);clip-path:polygon(50% 0,100% 100%,0 100%);filter:drop-shadow(0 0 5px #ff2f3bcc)}

body>footer nav{position:relative;flex:1;min-width:0;display:flex;align-items:flex-start;gap:2px;padding:0 0 8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;background:repeating-linear-gradient(90deg,#ffffff66 0 1px,transparent 1px 60px) left bottom/100% 7px no-repeat local,repeating-linear-gradient(90deg,#ffffff2e 0 1px,transparent 1px 12px) left bottom/100% 3px no-repeat local;-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}

/* Real project buttons plus the display-only copies that make the menu loop. */
body>footer nav :is(button,.rail-ghost){position:relative;flex:none;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;height:48px;padding:1px 11px;border:0;border-radius:0;background:none;font:500 19px/1.2 Tallica,sans-serif;letter-spacing:.03em;word-spacing:.2em;color:var(--rail-ink);text-shadow:var(--rail-shadow);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;opacity:.42;transition:opacity .28s,color .28s}
body>footer nav :is(button,.rail-ghost)[data-rail="1"]{opacity:.74}
body>footer nav :is(button,.rail-ghost)[data-rail="2"]{opacity:.42}
body>footer nav :is(button.active,.rail-ghost.is-current){opacity:1;color:var(--rail-red);border-color:transparent;text-shadow:0 0 2px #000,0 1px 3px #000,0 0 9px #000d}
/* START has no client line; its tall slanted letters are nudged to the true centre of the frame. */
.nav-start{display:block;transform:translate(.07em,.15em)}
/* Tallica draws taller than its line, so the project name keeps clear air under the client. */
.nav-project{display:block;margin-top:.24em;font:inherit;letter-spacing:inherit;word-spacing:inherit}
body>footer .nav-client{display:block;font:bold 12px/1.15 Arial,sans-serif;letter-spacing:.08em;word-spacing:0;color:#dedcd7}
body>footer nav :is(button.active,.rail-ghost.is-current) .nav-client{color:#fff}

/* Viewfinder corners around the current project. */
body>footer nav :is(button,.rail-ghost)::before{content:'';position:absolute;inset:1px 2px;pointer-events:none;opacity:0;transition:opacity .28s;background:linear-gradient(var(--rail-red),var(--rail-red)) 0 0/9px 2px,linear-gradient(var(--rail-red),var(--rail-red)) 0 0/2px 9px,linear-gradient(var(--rail-red),var(--rail-red)) 100% 0/9px 2px,linear-gradient(var(--rail-red),var(--rail-red)) 100% 0/2px 9px,linear-gradient(var(--rail-red),var(--rail-red)) 0 100%/9px 2px,linear-gradient(var(--rail-red),var(--rail-red)) 0 100%/2px 9px,linear-gradient(var(--rail-red),var(--rail-red)) 100% 100%/9px 2px,linear-gradient(var(--rail-red),var(--rail-red)) 100% 100%/2px 9px;background-repeat:no-repeat}
body>footer nav :is(button.active,.rail-ghost.is-current)::before{opacity:1}
body>footer nav button:focus-visible{opacity:1;outline:1px solid #ff7b85;outline-offset:-2px}
@media(hover:hover) and (pointer:fine){body>footer nav :is(button,.rail-ghost):hover{opacity:1;color:#fff}body>footer nav :is(button.active,.rail-ghost.is-current):hover{color:#ff5a63}}

body>footer>button{flex:none;align-self:center;width:26px;height:38px;margin-bottom:8px;color:#e9e6e0;filter:drop-shadow(0 1px 3px #000);transition:color .15s}
body>footer>button .control-symbol,#previous .control-symbol,#next .control-symbol{width:17px;height:17px}
@media(hover:hover) and (pointer:fine){body>footer>button:hover{color:var(--rail-red)}}

/* THE ARCHIVE: the same larger client line. */
.archive-client{font-size:11px}

@media(max-width:900px){
 body>footer{bottom:6px;width:min(560px,calc(100vw - 300px));height:54px;gap:0}
 body>footer::before{bottom:-6px;height:88px}
}
/* Phones: the timeline starts after the corner year. */
@media(max-width:650px){
 body>footer{left:92px;right:6px;width:auto;height:43px;transform:none}
 body>footer::before{left:-92px;width:100vw;height:72px;transform:none}
 body>footer::after{width:9px;height:6px}
 body>footer nav{padding-bottom:6px;background-size:100% 5px,100% 2px}
 body>footer nav :is(button,.rail-ghost){height:37px;padding:1px 8px;font-size:14.5px}
 body>footer .nav-client{font-size:9px;letter-spacing:.06em}
 body>footer nav :is(button,.rail-ghost)::before{background-size:6px 1.5px,1.5px 6px,6px 1.5px,1.5px 6px,6px 1.5px,1.5px 6px,6px 1.5px,1.5px 6px}
 body>footer>button{width:18px;height:30px;margin-bottom:6px}
 body>footer>button .control-symbol,#previous .control-symbol,#next .control-symbol{width:14px;height:14px}
}
/* Phones held sideways. */
@media(pointer:coarse) and (max-height:500px) and (min-aspect-ratio:1.35/1){
 body>footer{left:50%;right:auto;bottom:3px;width:min(520px,calc(100vw - 200px));height:34px;transform:translateX(-50%);gap:0}
 body>footer::before{left:50%;bottom:-3px;width:100vw;height:54px;transform:translateX(-50%)}
 body>footer::after{width:8px;height:4px}
 body>footer nav{padding-bottom:4px;background-size:100% 3px,100% 2px}
 body>footer nav :is(button,.rail-ghost){height:30px;padding:0 7px;font-size:12px;line-height:1.12}
 body>footer .nav-client{font-size:8px;line-height:1.05;letter-spacing:.05em}
 body>footer nav :is(button,.rail-ghost)::before{inset:0 1px;background-size:5px 1px,1px 5px,5px 1px,1px 5px,5px 1px,1px 5px,5px 1px,1px 5px}
 body>footer>button{width:16px;height:24px;margin-bottom:4px}
 body>footer>button .control-symbol,#previous .control-symbol,#next .control-symbol{width:12px;height:12px}
 .archive-client{font-size:10px}
 .invitation>*{position:relative;top:-24px}
}
@media(prefers-reduced-motion:reduce){body>footer nav :is(button,.rail-ghost),body>footer nav :is(button,.rail-ghost)::before,body>footer>button{transition:none}}
