/* Licensed under Spatial Sites key SS-122-7WTVAP. Redistribution prohibited. https://spatialsites.co/licence */
/* Halo, fuer den MontiLab-Content-Tag. Instrument Serif fuer Namen und Titel, Instrument Sans fuer den Text, IBM Plex Mono
   fuer das Kleingedruckte. Der Film ist ein Himmel mit den Videos im Ring; darunter warmes Papier und Tinte.
   MontiLab-Farben: Honig fuer den Kaufknopf (wie .knopf-kauf im Shop), Gruen als Akzent, Mint im Logo. */
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #1b1d24;
  --ink-2: #3a3d47;
  --muted: #62646c;
  --paper: #f3efe7;
  --paper-2: #e9e3d8;
  --line: rgba(27, 29, 36, 0.14);
  --sky-ink: #12233a;
  --accent: #2f6e45;
  --mint: #b5d4b7;
  --honey: #d9a441;
  --honey-hover: #c8922f;
  --night: #16211b;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --bar: 64px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 8px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); overflow-x: clip; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 2px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html.is-locked { overflow: hidden; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--body); text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s; }
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(27, 29, 36, 0.06); }
.btn-honig { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.btn-honig:hover { background: var(--honey-hover); border-color: var(--honey-hover); }

/* The loader: the name, and a counter that runs to 100 while the work comes in. */
.loader { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; grid-template-rows: 1fr auto; padding: calc(var(--bar) + 24px) var(--gutter) var(--gutter); color: var(--sky-ink); transition: opacity 0.6s ease, transform 0.8s cubic-bezier(.7, 0, .2, 1); }
html:not(.js) .loader, .loader.is-done { opacity: 0; transform: translateY(-24px); }
.loader-name { margin: 0; font-size: clamp(22px, 2.4vw, 32px); opacity: 0; }
.loader-line { align-self: end; margin: 0 0 18px; color: rgba(18, 35, 58, 0.6); }
.loader-count { position: absolute; right: var(--gutter); bottom: calc(var(--gutter) - 0.12em); margin: 0; font-size: clamp(96px, 16vw, 260px); line-height: 0.8; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* The bar. */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--bar); display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); color: var(--sky-ink); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.bar.is-solid { background: rgba(243, 239, 231, 0.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.bar.is-dusk:not(.is-solid) { color: #fdf6ee; }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 24px; text-decoration: none; letter-spacing: -0.01em; }
.mark img { width: 28px; height: 28px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 14px; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.avail { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; text-decoration: none; }
.avail:hover span { text-decoration: underline; text-underline-offset: 4px; }
.avail i { width: 7px; height: 7px; border-radius: 50%; background: #3fa66b; box-shadow: 0 0 0 3px rgba(63, 166, 107, 0.22); }

/* The film: a held stage the scroll plays through. */
.film { position: relative; height: 460vh; background: #c9d8e8; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; color: var(--sky-ink); }
.sky { position: absolute; inset: -4% -3%; }
.sky-layer, .sky-layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-layer img { object-fit: cover; }
.sky-dusk { opacity: 0; }
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.0) 55%, rgba(18, 35, 58, 0.12)); }

.hero-copy { position: absolute; left: var(--gutter); top: calc(var(--bar) + clamp(24px, 6vh, 72px)); z-index: 3; max-width: 34rem; }
.kicker { margin: 0 0 14px; opacity: 0.75; }
.hero-name { margin: 0; font-size: clamp(56px, 8.4vw, 148px); line-height: 0.88; letter-spacing: -0.025em; }
.hero-role { margin: 14px 0 0; font: italic 400 clamp(22px, 2.2vw, 32px)/1.15 var(--serif); }
.hero-line { margin: 10px 0 0; max-width: 22rem; font-size: 16px; color: rgba(18, 35, 58, 0.78); }
.hint { position: absolute; left: 50%; bottom: clamp(18px, 4vh, 36px); z-index: 3; margin: 0; transform: translateX(-50%); white-space: nowrap; opacity: 0.7; }

.scene { position: absolute; inset: 0; z-index: 2; perspective: 1800px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; }
.scene.is-dragging { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.card { position: absolute; left: 0; top: 0; width: var(--cw, 160px); height: calc(var(--cw, 160px) * 1.5); margin: calc(var(--cw, 160px) * -0.75) 0 0 calc(var(--cw, 160px) * -0.5); padding: 0; border: 0; background: none; transform-style: preserve-3d; cursor: pointer; will-change: transform; -webkit-tap-highlight-color: transparent; }
.face { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.front { box-shadow: 0 18px 40px -18px rgba(18, 35, 58, 0.55); }
.front::after { content: ""; position: absolute; inset: 0; background: #0c1626; opacity: var(--shade, 0); pointer-events: none; }
/* A small play mark in the corner says the card is a film. */
.card-play { position: absolute; right: 8%; bottom: 6%; width: calc(var(--cw, 160px) * 0.2); aspect-ratio: 1; border-radius: 50%; background: rgba(253, 250, 244, 0.9); box-shadow: 0 4px 14px -6px rgba(12, 22, 38, 0.6); }
.card-play::after { content: ""; position: absolute; left: 38%; top: 29%; border-style: solid; border-width: calc(var(--cw, 160px) * 0.042) 0 calc(var(--cw, 160px) * 0.042) calc(var(--cw, 160px) * 0.07); border-color: transparent transparent transparent var(--ink); }
.back { transform: rotateY(180deg); background: #f1ece2; color: #2a2c33; display: grid; align-content: space-between; padding: 10%; text-align: left; }
.back .print { position: absolute; inset: 0; background: center / cover no-repeat; transform: scaleX(-1); opacity: 0.2; filter: grayscale(0.3) blur(0.6px); mix-blend-mode: multiply; pointer-events: none; }
.back::after { content: ""; position: absolute; inset: 0; background: #0c1626; opacity: calc(var(--shade, 0) * 0.7); pointer-events: none; }
.back b, .back > span { position: relative; }
.back b { font: 400 calc(var(--cw, 160px) * 0.16)/1 var(--serif); }
.back span { font: 400 calc(var(--cw, 160px) * 0.062)/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.card-cap { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: grid; gap: 2px; text-align: left; opacity: var(--cap, 0); pointer-events: none; color: #fdf6ee; text-shadow: 0 1px 12px rgba(12, 22, 38, 0.45); }
.card-cap b { font: 400 max(calc(var(--cw, 160px) * 0.105), 8.5px)/1.05 var(--serif); }
.card-cap span { font: 400 max(calc(var(--cw, 160px) * 0.055), 5.4px)/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.86; }

.cap { position: absolute; left: 50%; z-index: 3; width: min(92vw, 40rem); text-align: center; transform: translateX(-50%); opacity: 0; pointer-events: none; color: #fdf6ee; text-shadow: 0 2px 20px rgba(12, 22, 38, 0.35); }
.cap h2 { margin: 0; font-size: clamp(30px, 3.6vw, 54px); line-height: 1; letter-spacing: -0.015em; }
.cap p { margin: 10px auto 0; max-width: 30rem; font-size: 15px; }
.cap-arch { top: 60%; }
.cap-strip { top: calc(var(--bar) + clamp(16px, 5vh, 56px)); }

.tag { position: fixed; left: 0; top: 0; z-index: 50; display: grid; gap: 2px; padding: 10px 12px; border-radius: 4px; background: rgba(253, 250, 244, 0.94); color: var(--ink); pointer-events: none; box-shadow: 0 10px 30px -12px rgba(12, 22, 38, 0.4); }
.tag b { font: 400 20px/1.05 var(--serif); }
.tag span { font: 400 10px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Every video. */
.index { position: relative; padding: clamp(72px, 12vh, 140px) var(--gutter); }
.index-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.index-head p { margin: 0; color: var(--muted); }
.h2 { margin: 0; font-size: clamp(40px, 5vw, 76px); line-height: 0.95; letter-spacing: -0.02em; }

.filter { position: sticky; top: var(--bar); z-index: 20; display: flex; align-items: center; gap: 4px 14px; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter); background: rgba(243, 239, 231, 0.94); border-bottom: 1px solid var(--line); }
.filter-label { flex: none; color: var(--muted); }
.filter-list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter-list::-webkit-scrollbar { display: none; }
.fbtn { flex: none; min-height: 44px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.fbtn:hover { color: var(--ink); border-bottom-color: var(--line); }
.fbtn[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.gruppe { padding-top: clamp(40px, 7vh, 80px); }
.gruppe-head { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; align-items: baseline; gap: 6px 24px; margin-bottom: 22px; }
.gruppe-t { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.015em; }
.gruppe-d { margin: 0; max-width: 36rem; color: var(--ink-2); font-size: 15px; }
.gruppe-n { margin: 0; color: var(--muted); white-space: nowrap; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 44vw), 1fr)); gap: clamp(18px, 2.4vw, 32px) clamp(12px, 1.6vw, 20px); align-items: start; }
.grid li.is-quer { grid-column: span 2; }
.tile { display: grid; gap: 4px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.tile-media { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 6px; background: var(--paper-2); box-shadow: 0 14px 30px -20px rgba(12, 22, 38, 0.55); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.tile-media img, .tile-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-media video { opacity: 0; transition: opacity 0.3s; }
.tile-media.is-playing video { opacity: 1; }
.tile-time { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 4px 6px; border-radius: 2px; background: rgba(12, 22, 38, 0.72); color: #fdf6ee; font-size: 10px; }
.tile:hover .tile-media { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(12, 22, 38, 0.6); }
.tile-t { margin-top: 8px; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.05; transition: color 0.2s; }
.tile:hover .tile-t { color: var(--accent); }
.tile-d { color: var(--muted); }
.gruppe-leer { color: var(--muted); }

/* About. */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); padding: clamp(72px, 12vh, 140px) var(--gutter); background: var(--paper-2); }
.about-portrait { margin: 0; }
.about-portrait img { width: 100%; height: auto; border-radius: 4px; }
.about-copy { align-self: center; max-width: 36rem; }
.about-body p { margin: 18px 0 0; font-size: 17px; color: var(--ink-2); }
.about-copy h3 { margin: 36px 0 12px; }
.services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.services li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; }

/* The way to the shop. */
.contact { padding: clamp(72px, 14vh, 160px) var(--gutter); max-width: 72rem; margin: 0 auto; }
.contact-title { margin: 0; font-size: clamp(44px, 7vw, 110px); line-height: 0.9; letter-spacing: -0.025em; }
.contact-line { margin: 16px 0 0; max-width: 34rem; font-size: 17px; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.foot a { display: inline-block; padding: 12px 0; text-underline-offset: 3px; }

/* The player. */
.case { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); overscroll-behavior: contain; }
.case::backdrop { background: rgba(12, 22, 38, 0.5); }
.case[open] { animation: case-in 0.5s cubic-bezier(.2, .8, .2, 1); }
@keyframes case-in { from { opacity: 0; transform: translateY(24px); } }
.case-inner { padding: 0 var(--gutter) var(--gutter); }
.case-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: var(--bar); background: var(--paper); }
.case-top p { margin: 0; }
.case-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 2px; background: transparent; cursor: pointer; }
.case-close svg { width: 22px; height: 22px; }
.case-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.case-cover { margin: 0; display: flex; justify-content: center; }
.case-cover video { width: min(100%, calc((100dvh - var(--bar) - 32px) * 9 / 16)); height: auto; aspect-ratio: 9 / 16; border-radius: 6px; background: var(--night); box-shadow: 0 30px 60px -30px rgba(12, 22, 38, 0.6); }
.case-grid.is-quer { grid-template-columns: 1fr; }
.case-grid.is-quer .case-cover video { width: 100%; height: auto; }
.case-grid.is-quer .case-text { position: static; }
.case-text { position: sticky; top: calc(var(--bar) + 16px); }
.case-title { margin: 0; font-size: clamp(44px, 5.4vw, 92px); line-height: 0.92; letter-spacing: -0.02em; }
.case-meta { margin: 14px 0 0; color: var(--muted); }
.case-summary { margin: 22px 0 0; font-size: 19px; line-height: 1.5; max-width: 34rem; }
.case-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 28px 0 0; font-size: 14px; }
.case-facts dt { font: 400 11px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.case-facts dd { margin: 0; }
.case-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.case-file { margin: 18px 0 0; font-size: 14px; }
.link-u { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; color: var(--ink-2); }
.link-u:hover { color: var(--accent); }

@media (max-width: 860px) {
  .nav { display: none; }
  .avail { margin-left: auto; }
  .about { grid-template-columns: 1fr; }
  .about-portrait { max-width: 22rem; }
  .gruppe-head { grid-template-columns: minmax(0, 1fr) auto; }
  .gruppe-d { grid-column: 1 / -1; grid-row: 2; }
  .case-grid { grid-template-columns: 1fr; }
  .case-text { position: static; }
  .case-cover video { width: min(100%, calc(72dvh * 9 / 16)); }
}
@media (max-width: 359px) {
  .avail span { display: none; }
}
@media (max-width: 560px) {
  .hero-name { font-size: clamp(50px, 15vw, 72px); }
  .hero-line { font-size: 15px; max-width: 20rem; }
  .foot { flex-direction: column; }
  .grid li.is-quer { grid-column: 1 / -1; }
  .filter-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .loader, .case[open], .tile-media, .tile-t, .fbtn { transition: none; animation: none; }
  .tile:hover .tile-media { transform: none; }
}
