[hidden] { display: none !important; }
:root {
  --bg: #0c0b0a; --ink: #f2ede4; --dim: #9b948a; --faint: #5d5750; --red: #ff4a1c;
  --cond: "Archivo", "Arial Narrow", sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { overflow: hidden; overscroll-behavior: none; font: 15px/1.5 var(--cond); font-stretch: 100%; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.booting #river, body.booting #console { opacity: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

#gl { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; display: block; }
#river { position: fixed; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; transition: opacity .3s; }
#slots { position: absolute; left: 0; top: 0; will-change: transform; }
body.paged #river, body.paged #console, body.paged #rail { pointer-events: none; }
body.paged.settled #river, body.paged.settled #gl, body.paged.settled #iso { visibility: hidden; }
body.paged #console, body.paged #rail { opacity: 0; }

/* the name: photo-finish type, tall and condensed */
#mast { position: absolute; pointer-events: none; }
#name { margin: 0; white-space: nowrap; font-family: var(--cond); font-weight: 760; font-stretch: 62%; text-transform: uppercase; line-height: .8; letter-spacing: -.01em; font-size: var(--fs, 64px); display: flex; flex-direction: row; gap: 0 .14em; flex-wrap: wrap; }
#name span { display: block; }
#name .n2 { color: var(--ink); }
#clock { margin: .9em 0 0; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }
#clock b { font-weight: 500; color: var(--red); font-variant-numeric: tabular-nums; }
body.amason #name { font-family: "Courier New", monospace; font-stretch: 100%; color: #19a24a; letter-spacing: .02em; image-rendering: pixelated; text-shadow: 3px 0 #0f7a33; }

/* each film: a link the size of its picture, with its caption under it */
.film { position: absolute; display: block; text-decoration: none; outline: none; }
.film .still { position: absolute; left: 0; top: 0; width: 100%; height: var(--h); object-fit: cover; opacity: 0; }
body.nogl .film .still, body.still.nogl .film .still { opacity: 1; }
.film::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: var(--h); background: #161412; z-index: -1; }
.film.lit::before { display: none; }
.film:focus-visible::after { content: ""; position: absolute; left: -5px; top: -5px; right: -5px; height: calc(var(--h) + 10px); border: 1.5px solid var(--red); }
.cap { position: absolute; left: 0; right: 0; top: calc(var(--h) + 9px); display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; pointer-events: none; }
.cap .t { font-weight: 640; font-stretch: 74%; font-size: 19px; line-height: 1.05; letter-spacing: .005em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap .c { grid-column: 1; font: 500 10.5px/1.4 var(--mono); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap .dt { grid-column: 2; grid-row: 1 / span 2; align-self: start; font: 500 10.5px/1.6 var(--mono); color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.still .cap .dt { visibility: hidden; }
.film:hover .cap .t { color: #fff; }

/* the finish: a photo-finish print of the whole trip */
#finish { position: absolute; pointer-events: none; }
#strip { display: block; width: 100%; height: clamp(120px, 22vw, 300px); background: transparent; }
#finish .cap { position: static; display: flex; justify-content: space-between; margin-top: 10px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
#finish .cap b { font-weight: 500; color: var(--red); }
body.still #finish, body.nogl #finish { display: none; }

#iso { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 1; }
#iso span { position: absolute; left: 0; top: 0; font: 500 9px/1 var(--mono); color: var(--faint); letter-spacing: .02em; transform-origin: 0 50%; margin-top: -4px; white-space: nowrap; }
@media (max-width: 759px) { #iso { display: none; } }
/* the rail: where you are in the river */
#rail { position: fixed; right: 10px; top: 70px; bottom: 70px; width: 1px; background: rgba(242, 237, 228, .12); pointer-events: none; transition: opacity .3s; }
#rail i { position: absolute; left: -2px; top: 0; width: 5px; height: 12px; background: var(--red); }

/* the console: the shape of time, hold, keep, index, about */
#console { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px; background: rgba(18, 16, 14, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(242, 237, 228, .1); border-radius: 999px; z-index: 5; transition: opacity .3s; white-space: nowrap; }
#console .shapes { display: flex; gap: 2px; }
#console button, #console a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--dim); }
#console button:hover, #console a:hover { color: var(--ink); background: rgba(242, 237, 228, .06); }
#console [aria-checked="true"], #console [aria-pressed="true"] { color: var(--bg); background: var(--ink); }
#console #keep { color: var(--ink); }
#console #keep svg { color: var(--red); }
#console .f { fill: currentColor; }
#console .sep { width: 1px; height: 20px; background: rgba(242, 237, 228, .14); margin: 0 4px; }
:focus-visible { outline: 1.5px solid var(--red); outline-offset: 2px; }
#say { position: fixed; left: 50%; top: 22px; transform: translate(-50%, -8px); margin: 0; padding: 7px 14px; border-radius: 999px; background: #1a6de0; color: #fff; font: 600 14px/1.2 var(--cond); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; z-index: 9; }
#say.on { opacity: 1; transform: translate(-50%, 0); }

/* sheets: index, a project, about */
.sheet { position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: var(--bg); z-index: 10; opacity: 0; transition: opacity .26s; padding: 0 clamp(16px, 4vw, 64px) 80px; }
.sheet.on { opacity: 1; }
.sbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 22px; padding: 16px 0 14px; margin-bottom: 8px; background: linear-gradient(rgba(12, 11, 10, .96) 70%, rgba(12, 11, 10, 0)); }
.sbar .back { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-weight: 760; font-stretch: 62%; font-size: 22px; text-transform: uppercase; line-height: 1; }
.sbar .back svg { width: 20px; height: 20px; color: var(--red); }
.sbar a { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--dim); padding: 8px 0; }
.sbar a:hover, .sbar .back:hover { color: var(--ink); }

.ih { font-weight: 760; font-stretch: 62%; text-transform: uppercase; font-size: clamp(56px, 11vw, 150px); line-height: .82; margin: 10px 0 26px; }
.ilist { list-style: none; margin: 0; padding: 0; columns: 2 420px; column-gap: 48px; }
.ilist li { break-inside: avoid; border-top: 1px solid rgba(242, 237, 228, .1); }
.ilist a { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 10px 0; text-decoration: none; }
.ilist img { grid-row: 1 / span 2; width: 92px; height: 52px; object-fit: cover; background: #1a1816; }
.ilist .t { font-weight: 640; font-stretch: 74%; font-size: 22px; line-height: 1.05; text-transform: uppercase; align-self: end; }
.ilist .c { font: 500 10.5px/1.6 var(--mono); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; align-self: start; }
.ilist a:hover .t, .ilist a:focus-visible .t { color: var(--red); }

.top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; margin-bottom: 56px; }
.top.about { grid-template-columns: minmax(0, 760px); }
.pf { margin: 14px 0 0; }
.pf canvas { display: block; width: 100%; height: clamp(56px, 7vw, 96px); background: #161412; }
.pf figcaption { display: flex; justify-content: space-between; margin-top: 7px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pf figcaption span:nth-child(2) { color: var(--red); }
.pf figcaption span:first-child, .pf figcaption span:last-child { text-transform: none; }
.hero { margin: 0; background: #161412; aspect-ratio: var(--asp, 1.78); max-height: 78vh; }
.hero video, .hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.head .client { margin: 0 0 8px; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; color: var(--red); text-transform: uppercase; }
.head h1 { margin: 0 0 18px; font-weight: 760; font-stretch: 62%; text-transform: uppercase; font-size: clamp(48px, 7vw, 112px); line-height: .84; outline: none; }
.head .desc { margin: 0 0 22px; font-size: 18px; line-height: 1.45; font-stretch: 92%; color: #ddd6cb; max-width: 40em; }
.head .role { margin: 0 0 14px; font: 500 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.head .contact { display: flex; gap: 20px; font: 500 12px/1.5 var(--mono); letter-spacing: .04em; }
.credits { margin: 0; display: grid; gap: 6px; font: 400 11.5px/1.5 var(--mono); color: var(--dim); }
.credits div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; border-top: 1px solid rgba(242, 237, 228, .08); padding-top: 6px; }
.credits dt { color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.credits dd { margin: 0; color: #cfc8bd; }
.sec { margin: 0 0 64px; }
.sec h2 { margin: 0 0 10px; font-weight: 700; font-stretch: 70%; text-transform: uppercase; font-size: 30px; line-height: 1; }
.sec .txt { margin: 0 0 20px; max-width: 46em; color: #cfc8bd; font-size: 16.5px; font-stretch: 94%; }
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 22px; }
.films.one { grid-template-columns: minmax(0, 1100px); }
.films.vertical { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.film figure, figure.film { margin: 0; position: relative; }
figure.film .frame { position: relative; aspect-ratio: 16 / 9; background: #161412; overflow: hidden; }
.films.vertical figure.film .frame { aspect-ratio: 9 / 16; }
figure.film .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
figure.film .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
figure.film .play { position: absolute; inset: 0; display: grid; place-items: center; }
figure.film .play svg { width: 64px; height: 64px; padding: 20px; border-radius: 50%; background: rgba(12, 11, 10, .66); color: var(--ink); fill: currentColor; stroke: none; transition: background .2s; }
figure.film .play:hover svg { background: var(--red); }
figure.film figcaption { margin-top: 8px; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.group { display: grid; gap: 16px; margin-top: 16px; }
.group.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot { margin: 0; }
.shot img { width: 100%; display: block; background: #161412; }
.radio { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.spot { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 8px; align-items: center; padding: 12px 14px; background: #161412; }
.spot .pp { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.spot .pp svg { fill: currentColor; stroke: none; }
.spot .pp .pa { display: none; stroke: currentColor; stroke-width: 2.6; }
.spot.on .pp .pl { display: none; } .spot.on .pp .pa { display: inline; }
.spot .t { font-weight: 640; font-stretch: 80%; font-size: 17px; text-transform: uppercase; }
.spot .time { font: 500 11px/1 var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.spot .bar { grid-column: 2 / span 2; height: 4px; background: rgba(242, 237, 228, .14); position: relative; cursor: pointer; }
.spot .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid rgba(242, 237, 228, .12); padding-top: 18px; }
.pn a { text-decoration: none; display: grid; gap: 4px; }
.pn a:last-child { text-align: right; }
.pn small { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.pn span { font-weight: 700; font-stretch: 66%; font-size: clamp(24px, 3.4vw, 40px); line-height: 1; text-transform: uppercase; }
.pn a:hover span { color: var(--red); }
.xp { list-style: none; margin: 0; padding: 0; max-width: 980px; }
.xp li { display: grid; grid-template-columns: 9em 1fr 1.4fr; gap: 18px; padding: 12px 0; border-top: 1px solid rgba(242, 237, 228, .1); }
.xp .d { font: 500 11px/1.6 var(--mono); color: var(--dim); }
.xp .r { font-weight: 640; font-stretch: 80%; font-size: 18px; line-height: 1.2; }
.xp .r em { display: block; font-style: normal; font: 500 11px/1.6 var(--mono); letter-spacing: .06em; color: var(--red); text-transform: uppercase; }
.xp .x { color: #cfc8bd; font-size: 15px; font-stretch: 94%; }

@media (max-width: 759px) {
  #name { font-size: 17.4vw; flex-wrap: nowrap; gap: 0 .1em; line-height: .8; }
  #clock { margin-top: .6em; }
  .cap { top: calc(var(--h) + 6px); column-gap: 6px; }
  .cap .c, .cap .dt { font-size: 9px; letter-spacing: .05em; }
  .cap .t { font-size: 14.5px; }
  #console { left: 10px; right: 10px; transform: none; justify-content: space-between; padding: 4px; }
  #console button, #console a { padding: 0 9px; height: 40px; }
  #console .shapes button span, #console #hold span, #console #keep span { display: none; }
  #console .sep { display: none; }
  #rail { display: none; }
  .top { grid-template-columns: 1fr; margin-bottom: 40px; }
  .group.row-3 { grid-template-columns: 1fr 1fr; }
  .xp li { grid-template-columns: 1fr; gap: 4px; }
  .ilist a { grid-template-columns: 76px 1fr; }
  .ilist img { width: 76px; height: 43px; }
  .ilist .t { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .sheet, #say { transition: none; } }
body.nogl .cap .dt, body.nogl #console .shapes, body.nogl #hold, body.nogl #keep, body.nogl #iso,
body.still #console .shapes, body.still #hold, body.still #keep { display: none !important; }
body.nogl #console .sep, body.still #console .sep { display: none; }

.xlv { position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; z-index: -1; }
#finish.blank { visibility: hidden; }
