@import url("https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Bungee&family=Creepster&family=Ewert&family=Fascinate+Inline&family=Fraunces:opsz,wght,SOFT,WONK@9..144,700..900,0..100,0..1&family=Grenze+Gotisch:wght@900&family=Henny+Penny&family=Lobster&family=Monoton&family=Press+Start+2P&family=Rubik+Glitch&family=Rubik+Moonrocks&family=Rye&family=Silkscreen:wght@700&family=Space+Grotesk:wght@400;500;600;700&family=Ultra&family=Yeseva+One&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111;
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
}

.page {
  min-height: 100vh;
}

.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.35)
  );
}

.text-xor-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.hero-person {
  position: absolute;
  right: 41%;
  bottom: 10%;
  width: 33%;
  z-index: 5;
  pointer-events: none;
}

.hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-caption {
  position: absolute;
  left: 5%;
  bottom: 6%;
  z-index: 6;

  max-width: 360px;
  color: rgba(255, 255, 255, 0.92);

  pointer-events: none;
}

.hero-caption-kicker {
  display: block;
  margin-bottom: 10px;

  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  opacity: 0.8;
}

.hero-caption-text {
  margin: 0;

  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;

  opacity: 0.95;
}

.hero-editor-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.editable-text {
  position: absolute;
  display: inline-block;

  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-variation-settings:
    "SOFT" 70,
    "WONK" 1,
    "opsz" 144;

  line-height: 1;
  white-space: nowrap;

  cursor: grab;
  user-select: none;
  outline: none;
  pointer-events: auto;

  color: transparent;
  -webkit-text-stroke-color: transparent;

  transform-origin: top left;
  transform: scale(var(--scale-x, 1), var(--scale-y, 1));

  --scale-x: 1;
  --scale-y: 1;

  --canvas-fill: white;
  --canvas-stroke: transparent;
  --canvas-stroke-width: 0;
}

.editable-text:active {
  cursor: grabbing;
}

.editable-text.editing {
  cursor: text;
  user-select: text;
  color: rgba(255, 255, 255, 0.25);
  caret-color: white;
}

.text-digitalisierung {
  left: 1%;
  top: 6%;
  font-size: 290px;
  letter-spacing: -0.02em;
}

.text-ki {
  left: 55%;
  top: 49%;
  font-size: 500px;
  letter-spacing: -0.01em;
}

.text-ampersand {
  left: 40%;
  top: 24%;
  font-size: 640px;
  letter-spacing: -0.08em;

  font-family: "Lobster", cursive;
  font-weight: 400;
  font-variation-settings: normal;

  --canvas-fill: transparent;
  --canvas-stroke: white;
  --canvas-stroke-width: 4;
}


.handle-nw {
  left: -7px;
  top: -7px;
  cursor: nwse-resize;
}

.handle-ne {
  right: -7px;
  top: -7px;
  cursor: nesw-resize;
}

.handle-sw {
  left: -7px;
  bottom: -7px;
  cursor: nesw-resize;
}

.handle-se {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}

.selection-box {
  position: absolute;
  z-index: 9999;
  pointer-events: none;

  border: none;
  border-radius: 0;
}

.selection-box.hidden {
  display: none;
}

.resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;

  background: transparent;
  border: none;
  border-radius: 0;

  pointer-events: auto;
}

.editable-text {
  z-index: 1;
}

.editable-text.is-selected {
  z-index: 100;
}

.editable-text.anim-fade-in-up-slow {
  --anim-opacity: 0;
  --anim-y: 320px;
}

:not(.editable-text).anim-fade-in-up-slow {
  opacity: 0;
  transform: translateY(320px);
  animation: fade-in-up-slow 3000ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in-up-slow {
  from {
    opacity: 0;
    transform: translateY(320px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}