@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-wdth.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #0d0e0b;
  --paper: #ecebe4;
  --mute: #9c9b92;
  --line: rgba(236, 235, 228, 0.14);
  --accent: #ff5500;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100svh;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

/* ---------- holding screen ---------- */

.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 4vw, 56px);
  overflow: hidden;
}

.reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* portrait phones: show the whole 16:9 reel instead of a zoomed crop,
   with a blurred still filling the rest of the screen */
.reel-bg {
  display: none;
}

@media (orientation: portrait) {
  .reel-bg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    filter: blur(28px) brightness(0.55);
    transform: scale(1.15);
  }

  .reel {
    object-fit: contain;
  }
}

/* translucent grey veil over the showreel */
.veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(28 28 26 / 0.62);
  backdrop-filter: blur(3px) saturate(80%);
  -webkit-backdrop-filter: blur(3px) saturate(80%);
}

.logo {
  font-stretch: 125%;
  font-weight: 760;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.center {
  align-self: center;
  max-width: 980px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}

.tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

h1 {
  margin: 0;
  font-stretch: 125%;
  font-weight: 760;
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lead {
  margin: 26px 0 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: #d3d2ca;
  text-wrap: pretty;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgb(236 235 228 / 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  transition: background 0.25s, box-shadow 0.25s;
}

.mail:hover,
.mail:focus-visible {
  background: rgb(236 235 228 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(236 235 228 / 0.4);
}

.mail-img {
  display: block;
  width: 161px;
  height: 23px;
  background: url('/media/kontakt-info-light.png') no-repeat left center / contain;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.82rem;
  color: var(--mute);
}

.foot nav {
  display: flex;
  gap: 20px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .tag::before {
    animation: none;
  }
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 80px) clamp(20px, 4vw, 56px) clamp(64px, 10vw, 120px);
  color: #d3d2ca;
}

.legal header {
  margin-bottom: 48px;
}

.legal h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-top: 40px;
  color: var(--paper);
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--paper);
}

.legal p {
  margin: 0;
}

.legal p + p {
  margin-top: 1em;
}

.legal .meta {
  margin-top: 48px;
  font-size: 0.82rem;
  color: var(--mute);
}

.addr {
  width: 152px;
  height: 82px;
  margin-bottom: 12px;
  background: url('/media/impressum-anschrift.png') no-repeat left top / contain;
  user-select: none;
}

.legal .mail {
  margin-top: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  vertical-align: middle;
}

/* ---------- render intro (same as the main site) ---------- */

.loader {
  display: none;
}

.loading .loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: block;
  background: var(--ink);
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.loaded .loader {
  opacity: 0;
}

.render-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buckets {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(7, 1fr);
}

.buckets i {
  position: relative;
  background: var(--ink);
  animation: bucket 0.5s linear both;
  animation-delay: calc(var(--o) * 17ms + 0.15s);
}

.buckets i::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='1' 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 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 120px 120px;
  opacity: 0;
  animation: bucket-noise 0.5s linear both;
  animation-delay: inherit;
}

.buckets i::after {
  content: '';
  position: absolute;
  inset: 0;
  --c: rgba(236, 235, 228, 0.9);
  background:
    linear-gradient(var(--c), var(--c)) left top / 9px 1px,
    linear-gradient(var(--c), var(--c)) left top / 1px 9px,
    linear-gradient(var(--c), var(--c)) right top / 9px 1px,
    linear-gradient(var(--c), var(--c)) right top / 1px 9px,
    linear-gradient(var(--c), var(--c)) left bottom / 9px 1px,
    linear-gradient(var(--c), var(--c)) left bottom / 1px 9px,
    linear-gradient(var(--c), var(--c)) right bottom / 9px 1px,
    linear-gradient(var(--c), var(--c)) right bottom / 1px 9px;
  background-repeat: no-repeat;
  opacity: 0;
  animation: bucket-mark 0.5s linear both;
  animation-delay: inherit;
}

@keyframes bucket {
  0% {
    background: var(--ink);
  }
  25% {
    background: rgba(13, 14, 11, 0.6);
  }
  70% {
    background: rgba(13, 14, 11, 0.15);
  }
  100% {
    background: transparent;
  }
}

@keyframes bucket-noise {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  55% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
  }
}

@keyframes bucket-mark {
  0% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* portrait phones: render the frame inside a 16:9 box instead of stretching the grid over the tall screen */
@media (orientation: portrait) {
  .render-img,
  .buckets {
    inset: auto;
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    transform: translateY(-50%);
  }
}

.render-ui {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--gutter) * 0.5);
  display: grid;
  width: max-content;
  gap: 6px;
  mix-blend-mode: difference;
  color: #fff;
}

.render-label,
.render-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.render-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.render-stats {
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.render-count {
  display: grid;
  justify-items: end;
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.render-count > span {
  grid-area: 1 / 1;
}

.render-count .ghost {
  visibility: hidden;
}
