/* Pitch Black Berlin — holding page
   Mobile-first. Every layer of the backdrop is CSS; assets/bg.jpg overrides it. */

:root {
  --black: #000000;
  --ink: #0a0a0a;
  --red: #e01b1b;
  --red-hot: #ff2b2b;
  --bone: #e8e6e2;
  --edge: 5vw;
}

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

/* Both elements, deliberately: iOS Safari ignores overflow-x when it is set
   on body alone. */
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--black);
  color: var(--bone);
  font-family: "Oswald", "Arial Narrow", system-ui, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- backdrop */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.scene > * { position: absolute; inset: 0; }

/* Concrete wall: a soft top light falling off into black, blotched with noise. */
.scene__wall {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(150, 148, 146, 0.30) 0%, rgba(60, 59, 58, 0.16) 38%, rgba(0, 0, 0, 0) 72%),
    radial-gradient(70% 50% at 22% 18%, rgba(120, 120, 122, 0.12) 0%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #16171a 0%, #0b0c0e 45%, #050506 100%);
}

.scene__wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='c' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.02' numOctaves='5' seed='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: 520px 520px;
  opacity: 0.42;
  mix-blend-mode: overlay;
}

/* Scaffolding / pipework hinted on the right edge. */
.scene__rig {
  left: auto;
  width: 46%;
  background:
    repeating-linear-gradient(90deg, rgba(190, 190, 195, 0.075) 0 2px, rgba(0, 0, 0, 0) 2px 68px),
    repeating-linear-gradient(0deg, rgba(190, 190, 195, 0.05) 0 2px, rgba(0, 0, 0, 0) 2px 132px),
    linear-gradient(105deg, rgba(0, 0, 0, 0) 46%, rgba(190, 190, 195, 0.05) 47%, rgba(0, 0, 0, 0) 48%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 55%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 55%);
}

/* The red tube, its bloom, and the smear it throws on the wet floor. */
.scene__neon {
  left: auto;
  right: 16%;
  top: 52%;
  bottom: auto;
  width: 6px;
  height: 12vh;
  min-height: 74px;
  background: linear-gradient(180deg, var(--red-hot), #ff6060 45%, var(--red-hot));
  box-shadow:
    0 0 12px 3px rgba(255, 43, 43, 0.95),
    0 0 46px 12px rgba(255, 30, 30, 0.55),
    0 0 130px 46px rgba(224, 27, 27, 0.32),
    0 0 320px 130px rgba(180, 20, 20, 0.16);
  animation: buzz 5.5s steps(1, end) infinite;
}

.scene__neon::after {
  content: "";
  position: absolute;
  left: -1px;
  top: calc(100% + 16vh);
  width: 8px;
  height: 14vh;
  background: linear-gradient(180deg, rgba(255, 43, 43, 0.55), rgba(255, 43, 43, 0));
  filter: blur(4px);
}

@keyframes buzz {
  0%, 96%, 100% { opacity: 1; }
  97%           { opacity: 0.45; }
  98%           { opacity: 1; }
  99%           { opacity: 0.7; }
}

/* Wet floor: brighter band, standing water, hose curves. */
.scene__floor {
  top: auto;
  height: 28%;
  background:
    radial-gradient(60% 120% at 46% 40%, rgba(160, 162, 165, 0.20) 0%, rgba(0, 0, 0, 0) 62%),
    radial-gradient(40% 90% at 74% 20%, rgba(224, 27, 27, 0.14) 0%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(120, 122, 126, 0.10) 30%, rgba(0, 0, 0, 0.55) 100%);
}

.scene__floor::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='w' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.05' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='600' height='300' filter='url(%23w)'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  opacity: 0.30;
  mix-blend-mode: overlay;
}

/* Low fog drifting across the middle of the room. */
.scene__fog {
  background:
    radial-gradient(50% 26% at 34% 74%, rgba(190, 192, 196, 0.16) 0%, rgba(0, 0, 0, 0) 100%),
    radial-gradient(38% 18% at 66% 66%, rgba(190, 192, 196, 0.10) 0%, rgba(0, 0, 0, 0) 100%);
  filter: blur(14px);
}

/* The photograph. Opaque, so the CSS scene above only shows if it fails to
   load. Phones get their own crop — a centre-cover of the landscape frame
   would cut the logo painted on the wall in half. */
.scene__photo {
  background-image: url("assets/bg.jpg");
  background-size: cover;
  background-position: center;
}

/* The phone crop fills the width rather than `cover`-ing the box: the logo is
   the subject and it is nearly as wide as its crop, so on anything narrower
   than the crop's own 47:102 `cover` would scale to the height and slice the
   logo's sides off. Filling the width keeps it whole and trims the floor
   instead — or, in a very narrow window, leaves black below the frame, which
   is what the colour here is for.

   3:5 rather than 3:4 so tablets stay on the landscape frame: 470px of crop
   stretched across an iPad's 768 magnifies the logo well past legibility.
   (Landscape keeps `cover`, and with it the CSS scene below as its fallback.) */
@media (max-aspect-ratio: 3 / 5) {
  .scene__photo {
    background-image: url("assets/bg-mobile.jpg");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--black);
  }
}

/* Wider than 16:9, `cover` crops so much height that the top of the painted
   logo goes with it. Anchoring the frame higher keeps the logo whole and
   spends the loss on the floor instead. */
@media (min-aspect-ratio: 16 / 9) {
  .scene__photo { background-position: center 22%; }
}

.scene__grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.16;
  mix-blend-mode: overlay;
}

.scene__vignette {
  background:
    radial-gradient(78% 62% at 50% 46%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.62) 78%, rgba(0, 0, 0, 0.92) 100%);
}

/* ------------------------------------------------------------------ layout */

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* The copy sits low and left, clear of the logo painted on the wall.
     `safe` keeps the headline reachable instead of clipped on short screens. */
  justify-content: flex-end;
  justify-content: safe flex-end;
  min-height: 100dvh;
  /* Bottom padding lifts the block clear of the floor line and corner marks. */
  padding: clamp(4rem, 12vh, 7rem) var(--edge) clamp(5rem, 16vh, 10rem);
}

/* ------------------------------------------------------------------- brand */

.brand {
  position: absolute;
  top: var(--edge);
  left: var(--edge);
}

.brand__name {
  margin: 0;
  color: var(--red);
  font-size: clamp(0.7rem, 2.6vw, 0.9rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.brand__rule {
  display: block;
  width: 1px;
  height: clamp(2.5rem, 9vh, 5.5rem);
  margin: 1.1rem 0 0 2px;
  background: var(--red);
  opacity: 0.85;
}

.brand__cross {
  display: block;
  position: relative;
  width: 13px;
  height: 13px;
  margin-top: 1.6rem;
  margin-left: -4px;
}

.brand__cross::before,
.brand__cross::after {
  content: "";
  position: absolute;
  background: var(--red);
}

.brand__cross::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }

.brand__cross::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  text-align: left;
  width: 100%;
  /* Ultrawide: the backdrop keeps its composition centred, so left-aligning
     the copy to the viewport edge strands it in the far corner. Past ~2000px
     the block rides in on 72vw instead, holding roughly the same inset as on
     a laptop. Below that the cap is inert. */
  max-width: max(90rem, 72vw);
}

/* The shadow the copy sits on. Anchored left, where the copy is, and
   generously overshot at the bottom so the note is inside it too. */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  z-index: -1;
  /* .hero already spans the full content width — going past 100% here pushed
     the plate off both edges and gave iOS Safari something to scroll. */
  width: min(100%, 68rem);
  height: calc(100% + clamp(4rem, 16vh, 11rem));
  transform: translateY(-50%);
  background: radial-gradient(60% 50% at 22% 50%,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.52) 55%,
    rgba(0, 0, 0, 0) 100%);
}

.hero__title {
  margin: 0;
  /* Long enough to hold "will be online soon." on one line; short enough that
     the hard break after "we" is never the only thing shaping the block. */
  max-width: 24ch;
  font-family: "Anton", "Oswald", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  /* Concrete grey, not white — the copy reads as painted on the wall, the way
     it does in the banner. */
  color: #bcb9b3;
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  /* Stencilled onto concrete: noise wears the letterforms without erasing
     them — the alpha ramp bottoms out at 0.15, never at 0. */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='e' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05 0.42' numOctaves='4' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -1.8 0 0 0 1.95'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23e)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='e' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05 0.42' numOctaves='4' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -1.8 0 0 0 1.95'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23e)'/%3E%3C/svg%3E");
  -webkit-mask-size: 300px 300px;
  mask-size: 300px 300px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}

.hero__rule {
  display: block;
  width: clamp(4.5rem, 14vw, 9rem);
  height: 2px;
  margin: clamp(1.1rem, 3vh, 1.8rem) 0;
  background: var(--red);
}

.hero__note {
  margin: 0;
  /* A step below the headline, as in the banner. */
  color: rgba(232, 230, 226, 0.62);
  font-size: clamp(0.7rem, 2.7vw, 1rem);
  font-weight: 400;
  /* No text-indent: left-aligned now, so the note starts flush with the
     headline and letter-spacing's trailing gap falls off the right. */
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

/* Contact: glyph and address on one line below the platform row, quieter than
   the row above it — it reads as a footnote to the icons, not a button. */
.contact {
  display: flex;
  justify-content: center;
  margin: 0.15rem 0 0;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  /* Keeps the 44px tap target the icon row has. */
  min-height: 2.75rem;
  color: rgba(232, 230, 226, 0.62);
  font-size: clamp(0.6rem, 2.2vw, 0.72rem);
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.18s ease;
}

.contact__link:hover,
.contact__link:focus-visible { color: var(--red-hot); }

.contact__link:focus-visible {
  outline: 1px solid var(--red-hot);
  outline-offset: 4px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.25rem, 1.5vw, 0.75rem);
  /* Centred on the page, not under the copy: .hero is centred in the stage and
     the stage's edge padding is symmetric, so this row lands on the same axis
     as the Impressum link below it. */
  justify-content: center;
  margin: clamp(1.4rem, 4vh, 2.2rem) 0 0;
}

/* 2.75rem square keeps a 44px tap target around the smaller glyph. */
.links__item {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: rgba(232, 230, 226, 0.75);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.links__item:hover,
.links__item:focus-visible {
  color: var(--red-hot);
  background-color: rgba(224, 27, 27, 0.1);
}

.links__item:focus-visible {
  outline: 1px solid var(--red-hot);
  outline-offset: 1px;
}

.links__icon {
  width: clamp(1.05rem, 3.6vw, 1.2rem);
  aspect-ratio: 1;
  fill: currentColor;
}

/* Icon definitions only — never painted directly. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ------------------------------------------------------------------ corner */

.tagline {
  display: none;
  position: absolute;
  right: var(--edge);
  top: 50%;
  margin: 0;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.mark {
  position: absolute;
  left: var(--edge);
  bottom: var(--edge);
  width: clamp(2.1rem, 8vw, 2.9rem);
  aspect-ratio: 1;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  display: grid;
  place-items: center;
}

.mark svg { width: 62%; height: 62%; }

.barcode {
  position: absolute;
  right: var(--edge);
  bottom: var(--edge);
  width: clamp(2.6rem, 9vw, 3.4rem);
  height: clamp(1rem, 3.4vw, 1.4rem);
  color: var(--red);
}

.barcode svg { width: 100%; height: 100%; display: block; }

.legal {
  position: absolute;
  left: 50%;
  bottom: var(--edge);
  transform: translateX(-50%);
}

.legal__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: rgba(232, 230, 226, 0.5);
  font-size: clamp(0.6rem, 2.2vw, 0.7rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s ease;
}

.legal__link:hover,
.legal__link:focus-visible { color: var(--red-hot); }

.legal__link:focus-visible {
  outline: 1px solid var(--red-hot);
  outline-offset: 4px;
}

/* -------------------------------------------------------------- legal page */

/* No .scene here — long-form text needs a flat ground, not a photograph. */
.page { background: var(--ink); }

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) var(--edge) clamp(4rem, 12vh, 7rem);
  /* Oswald is condensed — fine for display, punishing for paragraphs. */
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(232, 230, 226, 0.78);
}

.doc__back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--red);
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}

.doc__back:hover,
.doc__back:focus-visible { color: var(--red-hot); }

.doc__title {
  margin: clamp(1.5rem, 5vh, 2.5rem) 0 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bone);
}

.doc h2 {
  margin: clamp(2rem, 6vh, 3rem) 0 0.6rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.doc p { margin: 0; }

.doc a { color: var(--bone); }

.doc a:hover,
.doc a:focus-visible { color: var(--red-hot); }

/* ------------------------------------------------------------------- ≥40em */

@media (min-width: 40em) {
  :root { --edge: 3.5rem; }
  .tagline { display: block; }
}

@media (min-width: 64em) {
  :root { --edge: 4.5rem; }
  .scene__neon { right: 21%; }
}

/* Short landscape phones: keep the hero from touching the corner marks. */
@media (max-height: 30em) and (orientation: landscape) {
  .hero__title { font-size: clamp(1.5rem, 7vh, 2.25rem); }
  .brand__rule { height: 2rem; }
  .brand__cross { display: none; }
}

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