/* 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. Portrait viewports get their own crop — a centre-cover of the
   landscape frame would cut the neon tube out entirely. */
.scene__photo {
  background-image: url("assets/bg.jpg");
  background-size: cover;
  background-position: center;
}

@media (max-aspect-ratio: 3 / 4) {
  .scene__photo { background-image: url("assets/bg-mobile.jpg"); }
}

.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;
  /* Now that the hero carries the bio and links it can outgrow a short
     viewport; `safe` keeps the headline reachable instead of clipped. */
  justify-content: safe center;
  min-height: 100dvh;
  /* Heavier bottom padding rides the centred hero above the floor line. */
  padding: clamp(4rem, 12vh, 7rem) var(--edge) clamp(6rem, 20vh, 11rem);
}

/* ------------------------------------------------------------------- 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,
.hero__cross::before,
.hero__cross::after {
  content: "";
  position: absolute;
  background: var(--red);
}

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

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

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

.hero {
  position: relative;
  text-align: center;
  width: 100%;
}

/* The shadow the copy sits on. Sized to the hero itself and generously
   overshot at the bottom, so the note is inside it at every viewport. */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  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: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.62) 52%,
    rgba(0, 0, 0, 0.28) 80%,
    rgba(0, 0, 0, 0) 100%);
}

.hero__cross {
  display: block;
  position: relative;
  width: 13px;
  height: 13px;
  margin: 0 auto 1.2rem;
}

.hero__title {
  margin: 0;
  font-family: "Anton", "Oswald", "Arial Narrow", sans-serif;
  font-weight: 400;
  /* Sized so the word still fits inside the padding if Anton fails to load
     and a wider fallback takes over. */
  font-size: clamp(3rem, 18vw, 12rem);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #f2f0ec;
  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__sub {
  margin: clamp(0.5rem, 1.6vw, 1rem) 0 0;
  color: var(--red);
  font-size: clamp(0.85rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__rule {
  display: block;
  width: clamp(2.5rem, 9vw, 5rem);
  height: 1px;
  margin: clamp(1.4rem, 4vh, 2.4rem) auto;
  background: var(--red);
}

.hero__note {
  margin: 0;
  color: rgba(232, 230, 226, 0.86);
  font-size: clamp(0.7rem, 2.7vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.25rem, 1.5vw, 0.75rem);
  margin-top: clamp(1.6rem, 5vh, 2.6rem);
}

/* 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; }

/* ------------------------------------------------------------------- ≥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(2.6rem, 11vh, 6rem); }
  .brand__rule { height: 2rem; }
  .brand__cross { display: none; }
}

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