@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Share+Tech+Mono&display=swap");

:root {
  color-scheme: dark;
  --void: #131315;
  --void-soft: #1b1b1e;
  --bone: #efede8;
  --muted: #b8b4ad;
  --red: #ef3157;
  --cyan: #00bed7;
  --line: rgba(239, 237, 232, 0.28);
  --display: "Cormorant Garamond", Georgia, serif;
  --mono: "Share Tech Mono", monospace;
  --side: clamp(1.35rem, 4.8vw, 5.6rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--void);
  scroll-behavior: smooth;
}

body.realm-gehirn {
  min-width: 320px;
  margin: 0;
  overflow: hidden;
  background: var(--void);
  color: var(--bone);
  font-family: var(--display);
}

body.realm-gehirn a {
  color: inherit;
  text-decoration: none;
}

[data-lang-copy] {
  display: none;
}

html[data-language="en"] [data-lang-copy="en"],
html[data-language="de"] [data-lang-copy="de"] {
  display: inline;
}

.film-grain,
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.film-grain {
  opacity: 0.105;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.scanlines {
  opacity: 0.14;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.28) 4px
  );
  mix-blend-mode: multiply;
}

.site-hud {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  height: 4.6rem;
  padding: 0 var(--side);
  border-bottom: 1px solid rgba(239, 237, 232, 0.16);
  background: linear-gradient(to bottom, rgba(19, 19, 21, 0.78), rgba(19, 19, 21, 0));
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hud-mark {
  justify-self: start;
  font-family: var(--display);
  font-size: 1.23rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hud-cut {
  justify-self: center;
  color: var(--muted);
}

.site-hud nav {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.65rem);
}

.site-hud a,
.language-switch button {
  transition: color 160ms ease, text-shadow 160ms ease;
}

.site-hud a:hover,
.site-hud a:focus-visible,
.language-switch button:hover,
.language-switch button:focus-visible,
.language-switch button[aria-pressed="true"] {
  color: var(--bone);
  text-shadow: -1px 0 var(--red), 1px 0 var(--cyan);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  color: rgba(239, 237, 232, 0.38);
}

.language-switch button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(239, 237, 232, 0.47);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.reel {
  width: 100%;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.reel::-webkit-scrollbar {
  display: none;
}

.cut {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--void);
}

.hero-cut {
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  align-items: center;
  background:
    radial-gradient(circle at 76% 45%, rgba(255, 255, 255, 0.055), transparent 35%),
    linear-gradient(120deg, #18181a 0%, #111113 62%, #19191c 100%);
}

.hero-cut::before,
.hero-cut::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero-cut::before {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(239, 237, 232, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 237, 232, 0.07) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(90deg, transparent 4%, #000 47%, transparent 95%);
}

.hero-cut::after {
  border: clamp(0.55rem, 1vw, 0.9rem) solid rgba(19, 19, 21, 0.38);
  box-shadow: inset 0 0 9rem rgba(0, 0, 0, 0.55);
}

.hero-copy {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 6rem 0 4rem var(--side);
}

.hero-copy::before {
  position: absolute;
  top: 50%;
  left: var(--side);
  width: clamp(2.8rem, 5vw, 5rem);
  height: 1px;
  background: var(--line);
  content: "";
  transform: translateY(clamp(-5rem, -7vw, -3.4rem));
}

.hero-title {
  position: relative;
  margin: 0;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(5.6rem, 11.8vw, 12rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.75;
  text-shadow:
    -0.032em 0 rgba(239, 49, 87, 0.9),
    0.032em 0 rgba(0, 190, 215, 0.9);
}

.hero-title::after {
  position: absolute;
  top: 54%;
  left: 0;
  width: 102%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--bone) 49%, var(--cyan));
  content: "";
  opacity: 0.7;
}

.brain-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  height: min(82svh, 58rem);
  min-height: 28rem;
}

.brain-stage::before,
.brain-stage::after {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(239, 237, 232, 0.22);
  content: "";
  pointer-events: none;
}

.brain-stage::before {
  inset: 9% 8% 12% 4%;
  border-left-color: rgba(239, 49, 87, 0.45);
  border-right-color: rgba(0, 190, 215, 0.45);
}

.brain-stage::after {
  top: 50%;
  right: 4%;
  left: 0;
  border-width: 1px 0 0;
  opacity: 0.3;
}

.brain-stage canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 550ms ease;
}

.brain-stage.brain-ready canvas {
  opacity: 1;
}

.brain-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(32vw, 30rem);
  aspect-ratio: 1.15;
  border: 1px solid rgba(239, 237, 232, 0.5);
  border-radius: 48% 52% 46% 54% / 55% 48% 52% 45%;
  box-shadow: -8px 0 0 rgba(239, 49, 87, 0.34), 8px 0 0 rgba(0, 190, 215, 0.34);
  transform: translate(-50%, -50%);
  transition: opacity 240ms ease;
}

.brain-fallback::before,
.brain-fallback::after {
  position: absolute;
  inset: 13%;
  border: 1px dashed rgba(239, 237, 232, 0.38);
  border-radius: inherit;
  content: "";
}

.brain-fallback::after {
  inset: 28%;
}

.brain-stage.brain-ready .brain-fallback {
  opacity: 0;
}

.next-cut {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  z-index: 6;
  font-family: var(--mono);
  font-size: 1.15rem;
  transform: translateX(-50%);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 0.45rem); }
}

.project-cut {
  align-items: center;
  background: #111113;
}

.project-media,
.project-video,
.project-grade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-media {
  z-index: -1;
  overflow: hidden;
  background: #171719;
}

.project-video {
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.video-main {
  z-index: 1;
  filter: grayscale(1) contrast(1.17) brightness(0.65);
  transform: scale(1.006);
}

.video-red,
.video-cyan {
  z-index: 2;
  opacity: 0.23;
  mix-blend-mode: screen;
  transform: scale(1.012);
}

.video-red {
  filter: grayscale(1) sepia(1) saturate(12) hue-rotate(302deg) contrast(1.25) brightness(0.62);
  mask-image: repeating-linear-gradient(to bottom, #000 0, #000 8vh, transparent 8vh, transparent 13vh);
  translate: -5px 0;
}

.video-cyan {
  filter: grayscale(1) sepia(1) saturate(12) hue-rotate(126deg) contrast(1.25) brightness(0.62);
  mask-image: repeating-linear-gradient(to bottom, transparent 0, transparent 5vh, #000 5vh, #000 11vh);
  translate: 5px 0;
}

.project-grade {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(15, 15, 17, 0.94) 0%, rgba(15, 15, 17, 0.82) 25%, rgba(15, 15, 17, 0.26) 61%, rgba(15, 15, 17, 0.06) 100%),
    linear-gradient(180deg, rgba(13, 13, 15, 0.7) 0%, transparent 22%, transparent 71%, rgba(13, 13, 15, 0.76) 100%),
    repeating-linear-gradient(180deg, rgba(239, 237, 232, 0.035) 0, rgba(239, 237, 232, 0.035) 1px, transparent 1px, transparent 5px);
}

.project-media::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: clamp(0.5rem, 0.9vw, 0.85rem) solid rgba(10, 10, 12, 0.48);
  box-shadow: inset 0 0 8rem rgba(0, 0, 0, 0.35);
  content: "";
  pointer-events: none;
}

.project-copy {
  position: relative;
  z-index: 8;
  width: min(47rem, calc(100% - (2 * var(--side))));
  margin-left: var(--side);
  padding: 6rem 0 4rem;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.78);
}

.frame-caption,
.project-kind {
  font-family: var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.frame-caption {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.4rem;
  color: var(--cyan);
  font-size: 0.68rem;
}

.frame-caption::after {
  width: 4.2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 190, 215, 0.8), transparent);
  content: "";
}

.project-copy h2 {
  max-width: 8ch;
  margin: 0;
  color: var(--bone);
  font-size: clamp(4.8rem, 10.2vw, 10.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.72;
}

.project-kind {
  margin: clamp(2.2rem, 5vh, 4rem) 0 1rem;
  color: var(--bone);
  font-size: 0.72rem;
}

.project-line {
  max-width: 37rem;
  margin: 0 0 1.8rem;
  color: rgba(239, 237, 232, 0.83);
  font-size: clamp(1.18rem, 1.75vw, 1.55rem);
  line-height: 1.35;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.78rem 1rem 0.7rem;
  border: 1px solid rgba(239, 237, 232, 0.48);
  background: rgba(16, 16, 18, 0.36);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  border-color: var(--bone);
  background: rgba(16, 16, 18, 0.74);
  box-shadow: -3px 0 var(--red), 3px 0 var(--cyan);
}

.cut-nav {
  position: fixed;
  top: 50%;
  right: clamp(1rem, 2.1vw, 2.5rem);
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transform: translateY(-50%);
}

.cut-nav a {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
}

.cut-nav span {
  display: block;
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid rgba(239, 237, 232, 0.65);
  background: rgba(19, 19, 21, 0.34);
  transform: rotate(45deg);
  transition: width 160ms ease, height 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.cut-nav a:hover span,
.cut-nav a:focus-visible span {
  border-color: var(--bone);
}

.cut-nav a[aria-current="true"] span {
  width: 0.68rem;
  height: 0.68rem;
  border-color: var(--bone);
  background: var(--bone);
  box-shadow: -3px 3px 0 rgba(239, 49, 87, 0.8), 3px -3px 0 rgba(0, 190, 215, 0.8);
}

/* Existing 404 page compatibility. */
.error-cut {
  min-height: 100svh;
  place-items: center;
  padding: var(--side);
  text-align: center;
}

.error-cut h1,
.anaglyph-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 500;
  line-height: 0.8;
  text-shadow: -0.035em 0 var(--red), 0.035em 0 var(--cyan);
}

@media (max-width: 760px) {
  :root {
    --side: 1.25rem;
  }

  .site-hud {
    grid-template-columns: auto 1fr;
    height: 4.15rem;
    padding-right: 1.15rem;
  }

  .hud-cut {
    display: none;
  }

  .site-hud nav {
    gap: 0.72rem;
    font-size: 0.62rem;
  }

  .hero-cut {
    grid-template-columns: 1fr;
    grid-template-rows: 38% 62%;
  }

  .hero-copy {
    align-items: end;
    height: auto;
    padding: 5.7rem var(--side) 0;
  }

  .hero-copy::before {
    top: auto;
    bottom: 0.25rem;
    left: var(--side);
    transform: none;
  }

  .hero-title {
    font-size: clamp(5rem, 25vw, 8.3rem);
  }

  .brain-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .brain-stage::before {
    inset: 4% 8% 12%;
  }

  .brain-stage::after {
    right: 5%;
    left: 5%;
  }

  .brain-fallback {
    width: 70vw;
  }

  .project-video {
    object-position: 58% center;
  }

  .project-grade {
    background:
      linear-gradient(180deg, rgba(15, 15, 17, 0.69) 0%, rgba(15, 15, 17, 0.2) 30%, rgba(15, 15, 17, 0.76) 61%, rgba(15, 15, 17, 0.96) 100%),
      linear-gradient(90deg, rgba(15, 15, 17, 0.38), rgba(15, 15, 17, 0.08)),
      repeating-linear-gradient(180deg, rgba(239, 237, 232, 0.035) 0, rgba(239, 237, 232, 0.035) 1px, transparent 1px, transparent 5px);
  }

  .project-copy {
    align-self: end;
    width: calc(100% - 2.5rem);
    margin: 0 1.25rem;
    padding: 5.5rem 2.25rem 3.4rem 0;
  }

  .frame-caption {
    margin-bottom: 0.95rem;
  }

  .project-copy h2 {
    font-size: clamp(4.2rem, 20vw, 6rem);
  }

  .project-kind {
    margin-top: 1.5rem;
  }

  .project-line {
    margin-bottom: 1.2rem;
    font-size: clamp(1.06rem, 4.8vw, 1.3rem);
    line-height: 1.27;
  }

  .cut-nav {
    right: 0.5rem;
    gap: 0.78rem;
  }

  .cut-nav a {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .project-kind {
    margin-top: 1.75rem;
  }

  .project-line {
    margin-bottom: 1.1rem;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .next-cut {
    animation: none;
  }

  .brain-stage canvas {
    transition: none;
  }
}
