:root {
  --black: #090806;
  --paper: #e9dfcc;
  --muted: #a79c87;
  --gold: #c38f38;
  --gold-bright: #dda94f;
  --line: rgba(195, 143, 56, 0.32);
  --edge: clamp(1.25rem, 4vw, 4.75rem);
  --header: clamp(4.4rem, 11vh, 6.2rem);
  --footer: clamp(2.8rem, 7vh, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  height: 100%;
  background: var(--black);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  position: relative;
  display: grid;
  grid-template-rows: var(--header) minmax(0, 1fr) var(--footer);
  width: 100%;
  height: 100svh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 52%, rgba(110, 76, 26, 0.12), transparent 29%),
    var(--black);
}

.page-rule {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: var(--gold);
}

.is-ready .page-rule {
  height: 100%;
  transition: height 900ms cubic-bezier(0.65, 0, 0.35, 1);
}

.site-header,
footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-inline: var(--edge);
}

.site-header {
  height: var(--header);
  border-bottom: 1px solid rgba(233, 223, 204, 0.16);
}

.brand {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(2.75rem, 6.5vh, 4rem);
  height: auto;
}

.brand-name {
  max-width: 10rem;
  font-size: clamp(0.63rem, 1.35vh, 0.76rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.58rem, 1.15vh, 0.68rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  animation: status-blink 2.6s steps(1, end) infinite;
}

main {
  min-height: 0;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  width: 100%;
  max-width: 1500px;
  height: 100%;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vh, 3.75rem) var(--edge);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.eyebrow {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin: 0 0 clamp(0.8rem, 2.2vh, 1.7rem);
  color: var(--gold);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.58rem, 1.2vh, 0.7rem);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.9rem;
  height: 1px;
  background: var(--gold);
  content: "";
}

.eyebrow span {
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3.5rem, min(8.4vw, 13.5vh), 8.4rem);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.07em;
}

h1 span {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.91em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.065em;
}

.intro {
  max-width: 590px;
  margin: clamp(1.25rem, 3vh, 2.25rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.86rem, min(1.15vw, 2vh), 1.08rem);
  line-height: 1.65;
}

.intro strong {
  color: var(--paper);
  font-weight: 700;
}

.signoff {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: clamp(1.25rem, 3.8vh, 2.8rem);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.78rem, 1.4vw, 1rem);
  font-style: italic;
}

.signoff p {
  margin: 0;
}

.signoff-line {
  width: 0;
  height: 1px;
  background: var(--gold);
}

.is-ready .signoff-line {
  width: clamp(2.5rem, 7vw, 5rem);
  transition: width 800ms ease 700ms;
}

.eyebrow,
h1,
.intro,
.signoff {
  opacity: 0;
  transform: translateY(12px);
}

.is-ready .eyebrow,
.is-ready h1,
.is-ready .intro,
.is-ready .signoff {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.is-ready h1 {
  transition-delay: 90ms;
}

.is-ready .intro {
  transition-delay: 190ms;
}

.is-ready .signoff {
  transition-delay: 290ms;
}

.logo-panel {
  position: relative;
  justify-self: end;
  width: min(37vw, 58vh, 470px);
  opacity: 0;
}

.is-ready .logo-panel {
  opacity: 1;
  transition: opacity 800ms ease 260ms;
}

.panel-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.5rem, 1vh, 0.62rem);
  letter-spacing: 0.13em;
}

.logo-stage {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  background: #0d0b08;
}

.logo-stage::before {
  position: absolute;
  inset: 5.5%;
  border: 1px solid rgba(233, 223, 204, 0.08);
  content: "";
}

.hero-logo {
  position: relative;
  display: block;
  width: 84%;
  height: auto;
  opacity: 0;
  transform: scale(1.035);
}

.is-ready .hero-logo {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 900ms ease 420ms,
    transform 1.2s ease 420ms;
}

.corner {
  position: absolute;
  z-index: 2;
  width: 1.5rem;
  height: 1.5rem;
  border-color: var(--gold);
}

.corner-top {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
}

.corner-bottom {
  right: -1px;
  bottom: -1px;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.location {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.5rem, 1vh, 0.62rem);
  letter-spacing: 0.13em;
  text-align: right;
  text-transform: uppercase;
}

footer {
  height: var(--footer);
  border-top: 1px solid rgba(233, 223, 204, 0.16);
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.5rem, 1vh, 0.62rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

@keyframes status-blink {
  0%,
  88% {
    opacity: 1;
  }
  89%,
  100% {
    opacity: 0.25;
  }
}

@media (max-width: 760px) {
  :root {
    --header: clamp(4rem, 10vh, 4.7rem);
    --footer: clamp(2.7rem, 7vh, 3.2rem);
  }

  .hero {
    position: relative;
    display: block;
    padding-block: clamp(1rem, 3vh, 1.8rem);
  }

  .hero-copy {
    width: 100%;
    max-width: 590px;
  }

  h1 {
    font-size: clamp(3.25rem, min(17vw, 12vh), 6.2rem);
  }

  .intro {
    width: min(100%, 30rem);
    padding-right: 5vw;
    text-shadow: 0 2px 14px var(--black);
  }

  .logo-panel {
    position: absolute;
    z-index: -1;
    right: -7vw;
    bottom: -8vh;
    width: min(64vw, 40vh, 330px);
    filter: brightness(0.68);
  }

  .is-ready .logo-panel {
    opacity: 0.55;
  }

  .panel-meta,
  .location {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-name {
    max-width: 8rem;
    font-size: 0.56rem;
  }

  .status {
    font-size: 0;
  }

  .status::after {
    font-size: 0.56rem;
    content: "Im Aufbau";
  }

  .intro {
    margin-top: clamp(1rem, 2.5vh, 1.5rem);
    font-size: clamp(0.79rem, 3.55vw, 0.94rem);
    line-height: 1.53;
  }

  .signoff {
    margin-top: clamp(1rem, 3vh, 1.7rem);
  }

  footer p:first-child {
    display: none;
  }

  footer {
    justify-content: flex-start;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  :root {
    --header: 3.45rem;
    --footer: 2.5rem;
  }

  .brand-logo {
    width: 2.55rem;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(190px, 0.55fr);
    gap: 2rem;
    padding-block: 0.65rem;
  }

  .eyebrow {
    margin-bottom: 0.4rem;
  }

  h1 {
    font-size: clamp(2.75rem, 14vh, 4.25rem);
  }

  .intro {
    margin-top: 0.65rem;
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .signoff {
    margin-top: 0.65rem;
  }

  .logo-panel {
    position: relative;
    z-index: auto;
    right: auto;
    bottom: auto;
    display: block;
    width: min(29vw, 55vh, 270px);
    filter: none;
  }

  .is-ready .logo-panel {
    opacity: 1;
  }

  .panel-meta,
  .location {
    display: flex;
  }

  .location {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
