@import url("fonts.css");
/* Uncloud — site styles */
:root {
  --bg: #151312;
  --fg: #eff0eb; /* Uncloud white */
  --dim: rgba(239, 240, 235, .58);
  --line: rgba(239, 240, 235, .85);
  --pad: clamp(20px, 2.3vw, 40px);
  --font: "Forma DJR Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  letter-spacing: .02em;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--fg); color: var(--bg); }

/* film grain + dust */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
body::before { /* soft vignette */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 99;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45) 100%);
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } main { animation: none; } }

/* header */
/* logo and menu share one baseline; the bar sticks to the top while scrolling */
.site-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px var(--pad) 16px;
  position: sticky; top: 0; z-index: 150; /* above the grain overlay, so the logo stays crisp */
  background: rgba(21, 19, 18, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.wordmark {
  font-size: clamp(34px, 2.85vw, 50px);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
}
.site-header nav { display: flex; gap: clamp(18px, 2.2vw, 38px); line-height: 1; }
.site-header nav a { font-weight: 300; letter-spacing: .02em; font-size: 17px; position: relative; }
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: currentColor;
  transition: right .35s ease;
}
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { right: 0; }

/* footer */
.site-footer {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  padding: 80px var(--pad) 28px;
  font-size: 14px; font-weight: 300; color: var(--dim);
}
.site-footer span:first-child { margin-right: auto; }
.site-footer a:hover { color: var(--fg); }
.page-festival .site-footer { padding-top: 24px; }

/* big light intro line */
.intro {
  font-weight: 200;
  font-size: clamp(26px, 2.45vw, 42px);
  letter-spacing: .01em;
  line-height: 1.12;
  margin: clamp(40px, 5vw, 78px) var(--pad) clamp(36px, 3.6vw, 62px);
  max-width: 30em;
}

/* cards */
.card, .tile { display: block; position: relative; }
.card-img, .tile-img { overflow: hidden; background: #222; }
.card-img img, .tile-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  filter: saturate(.92) brightness(.92);
}
.card:hover img, .tile:hover img { transform: scale(1.035); filter: saturate(1.05) brightness(1); }
.card-title {
  display: inline-block; position: relative;
  margin-top: 12px;
  font-weight: 500; letter-spacing: .02em; font-size: clamp(16px, 1.1vw, 19px); line-height: 1.25;
}
/* hover underline that follows the text: one line under each line of a wrapped title */
.ul {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-bottom: 2px;
  transition: background-size .45s ease;
}
.card:hover .ul, .tile:hover .ul, .pager a:hover .ul { background-size: 100% 1px; }

/* home */
.home-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px;
  padding: clamp(60px, 11vh, 125px) var(--pad) 0;
}
.tile-img { aspect-ratio: 520 / 613; }

/* uncloud: radio on the left, events around the line */
.collab {
  display: grid; grid-template-columns: 25fr 75fr; gap: clamp(30px, 5vw, 90px);
  padding: 0 var(--pad);
}
.radio { position: sticky; top: 110px; align-self: start; }
/* artwork is 4:5 and has lettering: never crop it, shrink it to fit the screen height instead */
.radio .card { max-width: calc((100vh - 220px) * 0.8); }
.radio .card-img { aspect-ratio: 4 / 5; }
.radio-text { margin: 8px 0 0; color: var(--dim); font-weight: 300; font-size: 15px; max-width: 22em; }
.timeline { display: grid; grid-template-columns: 1fr 12px 1fr; column-gap: clamp(24px, 3.5vw, 64px); }
.tl-col { display: flex; flex-direction: column; gap: clamp(80px, 9vw, 160px); }
.tl-left { align-items: flex-end; }
.tl-right { padding-top: clamp(140px, 15vw, 280px); align-items: flex-start; }
.tl-col .card { width: 100%; }
.tl-col .card.portrait { width: 72%; }
.tl-col .card.landscape .card-img { aspect-ratio: 460 / 278; }
.tl-col .card.portrait .card-img { aspect-ratio: 3 / 4; }
.tl-left .card { text-align: right; }
.tl-line { position: relative; }
.tl-line .morph-line { position: sticky; top: 100px; height: calc(100vh - 130px); width: 12px; }

/* the line: solid -> dashes -> dots while scrolling (site.js sets the dash pattern) */
.morph-line { display: block; overflow: visible; }
.morph-line line { stroke: var(--line); stroke-width: 2; stroke-linecap: round; fill: none; }

/* festival: horizontal track */
.page-festival { overflow-x: hidden; }
.hscroll {
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll.dragging { cursor: grabbing; user-select: none; }
.hscroll.dragging a { pointer-events: none; }
.htrack { display: inline-flex; flex-direction: column; gap: clamp(24px, 3.5vh, 60px); padding: 0 var(--pad) 10px 0; }
.hrow { display: flex; gap: clamp(140px, 14vw, 245px); align-items: flex-start; }
.hrow.r2 { padding-left: clamp(220px, 19.2vw, 332px); }
/* cards shrink on low windows so both rows and the line fit on screen */
.hrow .card { width: clamp(180px, min(24.4vw, calc((100vh - 470px) * .7)), 422px); flex: none; }
.hrow .card-img { aspect-ratio: 422 / 278; }
.hrow .card-title { margin-left: 10%; }
.hrow .card:nth-child(2n) .card-title { margin-left: 0; }
/* the line stays visible: if the window is very low it sticks to the bottom of the screen */
.hprogress { margin: clamp(20px, 3.5vh, 110px) 0 0; width: 71.3vw; height: 12px; position: sticky; bottom: 18px; z-index: 5; }
.hprogress .morph-line { width: 100%; height: 12px; }

/* editions */
.releases { display: flex; flex-direction: column; gap: clamp(60px, 8vw, 140px); padding: 0 var(--pad); }
.release { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 70px); align-items: end; }
.release:nth-child(2n) { grid-template-columns: 5fr 7fr; }
.release:nth-child(2n) .release-img { order: 2; }
.release-img { overflow: hidden; background: #222; }
.release-img img { width: 100%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.release:hover .release-img img { transform: scale(1.03); }
.release .code { font-weight: 300; letter-spacing: .02em; color: var(--dim); font-size: 15px; }
.release h2 { font-weight: 500; font-size: clamp(26px, 2.6vw, 44px); letter-spacing: .01em; line-height: 1.05; margin: 10px 0 24px; }
.release h2 em { font-style: normal; font-weight: 200; }
.release blockquote { margin: 0 0 24px; font-weight: 300; font-size: 17px; max-width: 34em; color: var(--dim); }
.release blockquote em { font-style: normal; }
.release cite { display: block; margin-top: 8px; font-style: normal; color: var(--fg); font-size: 15px; }
.release .more { font-size: 15px; border-bottom: 1px solid; padding-bottom: 2px; }
.label-text { margin: clamp(80px, 10vw, 180px) var(--pad) 0; }

/* project page */
.project { padding: 0 var(--pad); }
.back { display: inline-block; margin: clamp(36px, 4vw, 64px) 0 24px; font-weight: 300; color: var(--dim); font-size: 15px; }
.back:hover { color: var(--fg); }
.project-title {
  font-weight: 300; font-size: clamp(34px, 4.6vw, 80px); letter-spacing: .02em; line-height: 1;
  margin: 0 0 20px; max-width: 18em;
}
.project-title em { font-style: normal; font-weight: 200; }
.project-meta { display: flex; gap: 24px; color: var(--dim); font-weight: 300; font-size: 15px; margin-bottom: clamp(30px, 4vw, 60px); }
.hero { margin: 0 calc(var(--pad) * -1) clamp(40px, 5vw, 90px); }
.hero img { width: 100%; max-height: 88vh; object-fit: cover; }
.release-page .hero img { object-fit: contain; max-height: 80vh; background: transparent; }

.prose { max-width: 44em; font-weight: 300; font-size: 18px; }
.prose.big { font-size: clamp(19px, 1.6vw, 26px); letter-spacing: .02em; max-width: 36em; }
.prose p { margin: 0 0 1.05em; }
.prose strong { font-weight: 500; }
.prose h3 { font-weight: 500; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 2.4em 0 .8em; }
.prose a { border-bottom: 1px solid rgba(239, 240, 235,.4); transition: border-color .2s; }
.prose a:hover { border-color: var(--fg); }
.prose p.lineup {
  font-size: clamp(20px, 1.9vw, 30px); font-weight: 300; letter-spacing: .02em; line-height: 1.3;
  max-width: none; margin: 1em 0 1.4em;
}
.project .prose { max-width: 50em; }
.project > .prose > .gallery, .project > .gallery, .project > .prose > .embed { max-width: none; }
.prose .gallery, .prose .embed { width: calc(100vw - var(--pad) * 2); max-width: none; }

.gallery { display: grid; gap: 12px; margin: 34px 0 54px; }
.gallery.single { grid-template-columns: minmax(0, 900px); }
.gallery.pair { grid-template-columns: 1fr 1fr; align-items: start; }
.gallery.grid { display: block; columns: 3 320px; column-gap: 12px; }
.gallery.grid figure { break-inside: avoid; margin-bottom: 12px; }
.gallery figure { margin: 0; cursor: zoom-in; }
.gallery img { width: 100%; transition: opacity .3s; }
.gallery figure:hover img { opacity: .85; }
.gallery figcaption { font-size: 14px; color: var(--dim); margin-top: 8px; line-height: 1.35; }
.gallery figcaption em, .gallery figcaption strong { color: var(--fg); font-style: normal; font-weight: 500; }

.embed { margin: 30px 0 40px; }
.embed.video { aspect-ratio: 16/9; max-width: 1000px !important; }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed.bandcamp { max-width: 700px !important; height: 120px; }

/* previous / next event */
.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin: clamp(60px, 8vw, 140px) 0 0; padding-top: 28px; border-top: 1px solid rgba(239, 240, 235,.25);
}
.pager a { display: block; }
.pager span { display: block; color: var(--dim); font-weight: 300; font-size: 15px; margin-bottom: 6px; }
.pager b { font-weight: 500; font-size: clamp(19px, 1.6vw, 28px); line-height: 1.2; display: inline-block; }
.pager-next { text-align: right; }

/* text pages */
.text-page .prose { margin: 0 var(--pad); }
.text-page .embed.video { width: 100%; }
.news-list { margin: 0 var(--pad); border-top: 1px solid rgba(239, 240, 235,.25); }
.news-item {
  display: grid; grid-template-columns: 150px 1fr 1.1fr; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid rgba(239, 240, 235,.25);
  transition: padding-left .35s ease;
}
.news-item:hover { padding-left: 14px; }
.news-item time { color: var(--dim); font-weight: 300; font-size: 15px; }
.news-item h2 { margin: 0; font-weight: 500; font-size: clamp(19px, 1.5vw, 24px); letter-spacing: .02em; line-height: 1.2; }
.news-item p { margin: 0; color: var(--dim); font-weight: 300; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,7,7,.96);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 88vw; max-height: 84vh; width: auto; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--fg); font: 300 30px/1 var(--font);
  cursor: pointer; padding: 18px; opacity: .7;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; font-size: 40px !important; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--dim); font-size: 14px; margin: 0; }

/* responsive */
@media (max-width: 900px) {
  .home-tiles { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .tile-img { aspect-ratio: 4 / 4.2; }
  .collab { grid-template-columns: 1fr; gap: 56px; }
  .radio { position: static; }
  .radio .card { max-width: none; }
  .timeline { display: flex; flex-direction: column; gap: 56px; }
  .tl-col { display: contents; }
  .tl-col .card, .tl-col .card.portrait { width: 100%; text-align: left; }
  .tl-col .card.portrait .card-img { aspect-ratio: 4 / 5; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left !important; }
  .hprogress, .tl-line { display: none; }
  .hscroll { overflow: visible; cursor: auto; }
  .htrack { display: flex; padding: 0 var(--pad); gap: 56px; }
  .hrow { flex-direction: column; gap: 56px; padding: 0 !important; }
  .htrack { flex-direction: column; }
  .hrow .card { width: 100%; }
  .hrow .card-title { margin-left: 0; }
  .release, .release:nth-child(2n) { grid-template-columns: 1fr; }
  .release:nth-child(2n) .release-img { order: 0; }
  .gallery.pair { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .prose { font-size: 17px; }
}

.wordmark-sub { font-weight: 300; }

/* language button (NL / EN), right of the menu */
.site-header nav { align-items: baseline; }
/* same size, weight and baseline as about / news / contact; only a thin outline makes it a button */
.site-header nav .lang-switch {
  font-size: 15px; font-weight: 300; letter-spacing: .02em; line-height: 1;
  border: 1px solid currentColor; border-radius: 0;   /* square corners, flat rectangle */
  padding: 2.5px 9px 0.5px; margin-left: clamp(6px, .8vw, 12px);  /* more on top: the font leaves empty descender space under nl / en */
  transition: background .25s, color .25s, border-color .25s;
}
.site-header nav .lang-switch::after { display: none; }
.site-header nav .lang-switch:hover { background: #b72a29; border-color: #b72a29; color: #eff0eb; }

/* home: YouTube video in the background, muted, blurred, no controls */
.bg-video { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
.bg-video iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  /* cover the screen at 16:9, scaled up so YouTube's title bar and logo fall outside the screen */
  width: max(100vw, 177.78vh); height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%) scale(1.3);
  filter: blur(8px) brightness(.55) saturate(.9);
}
.bg-video::after { content: ""; position: absolute; inset: 0; background: rgba(21, 19, 18, .35); }
.page-home main, .page-home .site-footer { position: relative; z-index: 1; }
.page-home .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* centre the letters in the language button: "nl" has a tall l, "en" only short letters */
html[lang="en"] .site-header nav .lang-switch { padding-top: 3.2px; padding-bottom: 0; }   /* shows "nl" */
html[lang="nl"] .site-header nav .lang-switch { padding-top: 1.8px; padding-bottom: 1.4px; } /* shows "en" */
