:root {
  --ink: #fff;
  --dim: rgba(255, 255, 255, .45);
  --faint: rgba(255, 255, 255, .16);
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --edge: clamp(16px, 2.4vw, 40px);
  --size: clamp(15px, 1.3vw, 22px);
}
body { font-weight: 500; letter-spacing: -.005em; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: #000; color: var(--ink); font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Media */
.stage { position: fixed; inset: 0; z-index: 0; background: #000; }
.shot { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; overflow: hidden; }
.shot.on { opacity: 1; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Slow push-in so stills feel like footage until real video is added */
.shot.on img { animation: push 12s ease-out both; }
@keyframes push { from { transform: scale(1.0); } to { transform: scale(1.08); } }
/* Legibility without regrading: every image keeps its own colour. A soft dark band sits behind the
   title column only, plus a light falloff at the top and bottom edges for the corner text. */
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 22%, rgba(0,0,0,.3) 36%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.3) 64%, transparent 78%),
    linear-gradient(180deg, rgba(0,0,0,.22) 0%, transparent 14%, transparent 86%, rgba(0,0,0,.28) 100%); }

/* List View only: a flat black veil (40%) above all media and below all type, for legibility */
.stage.framed::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: .4; pointer-events: none; }
.stage::after { z-index: 1; }

/* List View: media is placed by main.js, full bleed, so the subject sits beside the titles */
.stage.framed .shot img, .stage.framed .shot video { position: absolute; max-width: none; object-fit: fill; }
.stage.framed .shot.on img { animation: push-soft 14s ease-out both; }
/* Photo-then-video: the still sits over the video and dissolves once the video starts */
.stage.framed .shot .still { z-index: 1; transition: opacity 1.1s ease; }
.stage.framed .shot .still.gone { opacity: 0; }
@keyframes push-soft { from { transform: scale(1); } to { transform: scale(1.03); } }

/* Logo: left centre */
.logo { position: fixed; z-index: 3; left: var(--edge); top: 50%; transform: translateY(-50%); }
.logo img { display: block; width: clamp(132px, 12.1vw, 198px); height: auto; }

/* Titles: centre column */
.titles { position: fixed; inset: 0; z-index: 2; overflow-y: scroll; scrollbar-width: none; }
.titles::-webkit-scrollbar { display: none; }
.titles ul { list-style: none; text-align: center; }
/* List View titles: Bricolage Grotesque, title case, set larger with soft grey and one bright line */
.titles li a { display: inline-block; font-family: "Bricolage Grotesque", var(--sans); font-weight: 740;
  font-size: clamp(16px, 1.1vw, 18px); line-height: 1.55; letter-spacing: -.01em; color: rgba(255,255,255,.42); transition: color .25s; }
.titles li a { transition: color .25s, font-weight .35s ease, font-variation-settings .35s ease; }
.titles li a.on { color: var(--ink); font-weight: 740; }
.titles li a:hover { font-weight: 780; color: var(--ink); }   /* hover: the title steps up in weight */
/* End-credits fade: titles dissolve toward the top and bottom, full strength through the middle */
.titles { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%); }

.titles li.muted a { color: var(--faint); }

/* Filter row: right centre. A dot above and a line below follow the hovered / selected filter. */
.filters { position: fixed; z-index: 3; right: var(--edge); top: 50%; transform: translateY(-50%); display: flex; gap: 1.6em;
  padding: 14px 0; font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transition: opacity .8s ease; }
.filters.visible { opacity: 1; }
.filters button { text-transform: inherit; letter-spacing: inherit; padding: 4px 0; color: var(--dim);
  transition: color .3s, opacity .9s ease, transform 1.3s cubic-bezier(.65,0,.35,1); }
.filters button.on { color: var(--ink); }
.filters .dot, .filters .line { position: absolute; left: 0; background: var(--accent, #fff); pointer-events: none;
  transition: transform .5s cubic-bezier(.65,0,.35,1), width .5s cubic-bezier(.65,0,.35,1); }
.filters .dot { top: 4px; width: 4px; height: 4px; border-radius: 50%; }
.filters .line { bottom: 10px; height: 1px; width: 0; }
.filters.pre button:first-child { transform: translateX(var(--shift)); }
.filters.pre button:not(:first-child) { opacity: 0; }
.filters.moving .dot, .filters.moving .line { transition-duration: 1.3s; }
.filters button:nth-child(2) { transition-delay: 0s, .4s, 0s; }
.filters button:nth-child(3) { transition-delay: 0s, .6s, 0s; }
.filters button:nth-child(4) { transition-delay: 0s, .8s, 0s; }

@media (max-width: 760px) {
  /* Phone: logo top-left, filters bottom row, titles stay centred */
  .logo { top: var(--edge); transform: none; }
  .logo img { width: 121px; }
  .filters { top: auto; bottom: 64px; left: 0; right: 0; transform: none; justify-content: center; gap: 1.2em; }
  .logo { left: 0; right: 0; top: 0; padding: calc(var(--edge) + 34px) var(--edge) 36px; background: linear-gradient(rgba(0,0,0,.85) 45%, transparent); }
  /* View menu gets the top row to itself, spread edge to edge; the logo sits on the row under it */
  .viewmenu { left: var(--edge); justify-content: space-between; gap: 0; font-size: 10px; }
  /* List: fade the titles out before they reach the filter row */
  .titles { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 62%, transparent 80%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 62%, transparent 80%); }
  :root { --size: 14px; --dim: rgba(255,255,255,.38); }
}
@media (prefers-reduced-motion: reduce) {
  .shot { transition: none; }
  .shot.on img { animation: none; }
}

/* View switch (List View <-> World View), top right on both homepages */
.view, .corner { position: fixed; z-index: 3; font-size: 10.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.view { top: var(--edge); right: var(--edge); }
.corner.left { left: var(--edge); bottom: var(--edge); }
.corner.right { right: var(--edge); bottom: var(--edge); }
/* New York clock + coordinates */
.clock { display: grid; justify-items: end; gap: 5px; text-align: right; font-size: 8.5px; }
.clock b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; margin-left: .8em; }
.view, .corner a, a.corner { transition: color .25s; }
.view:hover, .corner a:hover, a.corner:hover { color: var(--ink); }
.corner svg { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.corner svg .dot { fill: currentColor; stroke: none; }

/* Underline that draws in on hover / when selected (matches the filter underline) */
.u { position: relative; display: inline-block; }
.view.u, a.corner.u { position: fixed; }   /* keep the fixed corner placement */
.u::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--accent, #fff);
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.65,0,.35,1); }
.u:hover::after, .u.on::after { transform: scaleX(1); }

/* Cursor (mouse devices only; added by chrome.js): a fine "+", morphing into a play button over a project */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.shown { opacity: 1; }
.cursor span { position: absolute; left: 0; top: 0; transition: transform .45s cubic-bezier(.3,.7,.2,1), opacity .3s ease; }
.cursor .plus { width: 17px; height: 17px; margin: -8.5px; transform: rotate(0deg);
  background: linear-gradient(#fff, #fff) center / 1px 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 1px no-repeat; }
.cursor .ring { width: 46px; height: 46px; margin: -23px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%;
  transform: scale(.25); opacity: 0; }
.cursor .tri { margin: -6px 0 0 -3px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  transform: scale(.4); opacity: 0; }
.cursor.play .plus { transform: rotate(90deg) scale(.3); opacity: 0; }
.cursor.play .ring, .cursor.play .tri { transform: none; opacity: 1; }
.cursor.link .plus { transform: rotate(45deg) scale(1.15); }
.cursor.down .plus, .cursor.down .ring { transform: scale(.8); }

/* Pages open on black; the List View background fades up after a moment */
.stage { transition: opacity 1.6s ease; }
body.intro .stage { opacity: 0; }

/* Bottom left: INFO (the way into the About page) with the sound toggle beneath it.
   Both lines share one left edge and nearly one size; the equalizer sits after the word. */
.infoblock { display: grid; justify-items: start; gap: 9px; }
.infoblock .info, .sound { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.infoblock .info { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); position: relative; }
.infoblock .info .arr { display: inline-block; font-size: 10px; letter-spacing: 0; opacity: .7;
  transition: transform .45s cubic-bezier(.3,.7,.2,1), opacity .3s; }
.infoblock .info:hover .arr { transform: translateX(3px); opacity: 1; }
.infoblock .info::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--accent, #fff);
  transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.65,0,.35,1); }
.infoblock .info:hover::after { transform: scaleX(1); }
.sound { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: var(--dim); transition: color .25s; }
.sound i { order: 2; }
.credit { font-size: 8.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); line-height: 1; }
.sound:hover, .sound.on { color: var(--ink); }
.sound i { display: flex; align-items: flex-end; gap: 2px; height: 8px; }
.sound i b { width: 1.5px; height: 2px; background: currentColor; transition: height .3s; }
.sound.on i b { animation: eq 1s ease-in-out infinite alternate; }
.sound.on i b:nth-child(2) { animation-delay: -.35s; } .sound.on i b:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { from { height: 2px; } to { height: 8px; } }

/* Top-left controls (World View: Explore with Sound beneath; List View: Sound alone) */
.topleft { position: fixed; z-index: 4; top: var(--edge); left: var(--edge); display: grid; justify-items: start; gap: 12px;
  transition: opacity 1.2s ease; }
body.loading .topleft { opacity: 0; pointer-events: none; }
/* Sound sits under Explore, its words lined up with "Explore" (past the play circle) */
.topleft .sound { font-size: 8.5px; letter-spacing: .14em; margin-top: 0; gap: 0; }   /* a quiet subline under Explore */
/* equaliser on the left, centred under the play circle; the words still line up with "Explore" */
.topleft .sound i { order: 0; width: 16px; justify-content: center; margin-right: 8px; }
@media (max-width: 760px) { .topleft { top: calc(var(--edge) + 82px); } }   /* phones: the logo takes the corner */
/* List View: Sound alone in the corner sits on the same line Explore occupies on World View */
.topleft > .sound:first-child { margin-top: 0; min-height: 16px; }

/* List View title parts: project (quieter) and city tag; the highlighted / hovered line lights up whole */
.titles li a .sub { font-weight: 500; opacity: .55; margin-left: .28em; }
.titles li a .num { display: inline-block; margin-right: .7em; font-size: .62em; font-weight: 500; letter-spacing: .08em; opacity: .6; vertical-align: .18em; font-variant-numeric: tabular-nums; }
.titles li a .tag { display: inline-block; margin-left: .8em; font: 500 .5em/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .6; vertical-align: .35em; }
.titles li a.on .sub, .titles li a.on .tag, .titles li a:hover .sub, .titles li a:hover .tag { opacity: 1; }
.titles .t-short { display: none; }
@media (max-width: 760px) { .titles .t-long { display: none; } .titles .t-short { display: inline; } }

/* Film-credits layout (desktop): artist right-aligned | project + city left-aligned, around a centre gutter.
   Phones keep centred lines (two columns are too tight there). */
@media (min-width: 761px) {
  .titles li a { display: grid; grid-template-columns: 1fr 1fr; column-gap: .9em; width: 100%; text-align: left; }
  .titles li a .art { text-align: right; justify-self: end; }
  .titles li a .rest { justify-self: start; }
  /* Only the words themselves respond to hover, not the full-width row */
  .titles li a { pointer-events: none; }
  .titles li a .art, .titles li a .rest { pointer-events: auto; }
  .titles li a .sub { margin-left: 0; }
  .titles li a .rest { white-space: nowrap; }
}
.titles li a { position: relative; }

/* Turn timer: a hairline along the bottom edge of the screen that fills over each project's turn,
   like a film's progress bar. Pauses while a title is hovered. */
.turnbar { display: block; position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.12); pointer-events: none; }
.turnbar i { position: absolute; inset: 0; background: #fff; opacity: .8; transform: scaleX(0); transform-origin: left; }
body.hovering .turnbar i { animation-play-state: paused !important; }
@keyframes turnx { to { transform: scaleX(1); } }

/* Phones: a fixed, legible title size (13px suits short bold lines read at arm's length) */
@media (max-width: 760px) { .titles li a { font-size: 14px; } }

/* View menu, top right on every page: WORLD VIEW · LIST VIEW · PROJECT VIEW, the current one lit with the
   filter row's dot + line. On entry the current view starts alone at the right, glides into place and the
   others fade in beside it (same motion as the filter row). */
.viewmenu { position: fixed; z-index: 4; top: calc(var(--edge) - 14px); right: var(--edge); display: flex; align-items: center; gap: 1.6em;
  padding: 14px 0; font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .8s ease; }
.viewmenu.visible { opacity: 1; }
.viewmenu .vm-i { padding: 4px 0; color: var(--dim); transition: color .3s, opacity .9s ease, transform 1.3s cubic-bezier(.65,0,.35,1); }
.viewmenu .vm-i.cur, .viewmenu a.vm-i:hover { color: var(--ink); }
.viewmenu .vm-i:nth-child(2) { transition-delay: 0s, .4s, 0s; }
.viewmenu .vm-i:nth-child(3) { transition-delay: 0s, .6s, 0s; }
.viewmenu.pre .vm-i.cur { transform: translateX(var(--shift)); transition-delay: 0s; }
.viewmenu.pre .vm-i:not(.cur) { opacity: 0; }
.viewmenu .dot, .viewmenu .line { position: absolute; left: 0; background: var(--accent, #fff); pointer-events: none;
  transition: transform .5s cubic-bezier(.65,0,.35,1), width .5s cubic-bezier(.65,0,.35,1); }
.viewmenu.moving .dot, .viewmenu.moving .line { transition-duration: 1.3s; }
.viewmenu.moving.quick .dot, .viewmenu.moving.quick .line { transition-duration: .45s; }   /* the glide on click, before the page changes */
.viewmenu .dot { top: 4px; width: 4px; height: 4px; border-radius: 50%; }
.viewmenu .line { bottom: 10px; height: 1px; width: 0; }
.viewmenu.jump, .viewmenu.jump * { transition: none !important; }

/* Logo inverts whatever passes behind it (as on the project page) */
.logo { mix-blend-mode: difference; }
body.infomode .logo { mix-blend-mode: normal; }   /* the white Info page keeps its off-black logo */

/* Web design credit: on every page, as a quiet footnote under About */
.credit { display: block; font-size: 7.5px; letter-spacing: .14em; color: rgba(255,255,255,.3); }
body.infomode .credit { color: var(--faint); }

/* List View, centred and still (the whole list fits): only a light fade at the far edges */
body.list-still .titles { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); }

/* Phones, v2: logo top centre, View menu full width under it; List View has no Sound row */
@media (max-width: 760px) {
  .logo { left: 50%; right: auto; transform: translateX(-50%); padding: var(--edge) 0 0; background: none; }
  .logo img { width: 132px; }
  .viewmenu { top: 0; right: var(--edge); font-size: 9.5px; letter-spacing: .1em; }   /* flush to the top, filter size */
  .logo { padding-top: calc(var(--edge) + 46px); }
  body:not(.world) .topleft { display: none; }
  /* one footer on every page: small coordinates, About smaller with a standing underline */
  .clock { font-size: 7px; gap: 4px; }
  .infoblock .info { font-size: 9px; }
  .filters { bottom: 70px; }   /* same height as World View */
  .infoblock .info::after { transform: scaleX(1); bottom: -4px; }
}

/* ---- Phones: legibility pass. Still dainty (light, spaced caps) but at sizes that read easily on a phone ---- */
@media (max-width: 760px) {
  .viewmenu, body.world .viewmenu.view, #ppViews { font-size: 11px !important; }          /* World / List / Project View */
  .filters, #filters { font-size: 11px !important; }                                       /* All / Music Videos / ... */
  .infoblock .info { font-size: 10.5px !important; }                                       /* About */
  .credit { font-size: 8.5px !important; }
  .clock { font-size: 7px !important; }                                                    /* city, time, coordinates: a small design detail, kept tiny */
  .cap .meta { font-size: 10.5px !important; }                                             /* category above the title */
  .cap-more { font-size: 10px !important; }                                                /* View full project */
  body.world .topleft .explore { font-size: 10.5px !important; }
  .pp-ctrls .pp-snd, .pp-ctrls button, .pp-ctrls a { font-size: 10px !important; }         /* Autoplay / Sound */
  .pin em { font-size: 9px !important; }                                                   /* city names on the globe */
  body.infomode.al3 .info-now { font-size: 10.5px !important; }
}

