/* ---------------------------------------------------------
   ROHBAU WEB — Coming Soon
--------------------------------------------------------- */

:root {
  --bg: #F7F5F2;
  --black: #090909;
  --gray-1: #777777;
  --gray-2: #B8B8B8;
  --gray-3: #E8E8E5;

  --font: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --edge: clamp(20px, 5vw, 48px);
  --dur-fast: 600ms;
  --dur-slow: 900ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--black);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

/* ---------------------------------------------------------
   Decorative layer: grid + oversized R-mark
--------------------------------------------------------- */

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-line {
  position: absolute;
  background: var(--gray-3);
}

.grid-line--v {
  top: 0;
  bottom: 0;
  width: 1px;
}

.grid-line--h {
  left: 0;
  right: 0;
  height: 1px;
}

.bg-mark {
  position: fixed;
  z-index: 0;
  right: clamp(-6vw, -2vw, 4vw);
  bottom: clamp(-8vh, -3vh, 6vh);
  width: clamp(260px, 34vw, 620px);
  height: auto;
  fill: var(--black);
  opacity: 0.035;
  pointer-events: none;
}

/* ---------------------------------------------------------
   Page frame
--------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: var(--edge);
  gap: clamp(2.5rem, 8vh, 5rem);
}

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0;
  animation: fade-up var(--dur-fast) var(--ease) 80ms forwards;
}

.logo-mark {
  width: 22px;
  height: 22px;
  fill: var(--black);
  flex-shrink: 0;
}

.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-word__primary {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.logo-word__secondary {
  margin-top: 4px;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gray-1);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-up var(--dur-fast) var(--ease) 160ms forwards;
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
  animation: pulse 2.6s ease-in-out infinite;
}

.status__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gray-1);
}

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 46rem;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(1.25rem, 4vh, 2rem);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-1);
  opacity: 0;
  animation: fade-up var(--dur-fast) var(--ease) 220ms forwards;
}

.hero__index {
  color: var(--gray-2);
  font-variant-numeric: tabular-nums;
}

.hero__rule {
  height: 1px;
  width: 32px;
  background: var(--gray-2);
  animation: grow-line var(--dur-slow) var(--ease) 420ms forwards;
  transform-origin: left;
}

.hero__title {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 11vw, 8rem);
  line-height: 0.94;
  letter-spacing: 0.005em;
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line {
  opacity: 0;
  transform: translateY(0.3em);
  animation: fade-up var(--dur-slow) var(--ease) forwards;
}

.hero__line:nth-child(1) { animation-delay: 260ms; }
.hero__line:nth-child(2) { animation-delay: 360ms; }

.hero__text {
  margin: clamp(1.5rem, 4vh, 2.25rem) 0 0;
  max-width: 34ch;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.55;
  color: var(--gray-1);
  opacity: 0;
  animation: fade-up var(--dur-fast) var(--ease) 520ms forwards;
}

.hero__contact {
  display: inline-block;
  width: fit-content;
  margin-top: clamp(1.5rem, 4vh, 2rem);
  padding-bottom: 3px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-2);
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
  opacity: 0;
  animation: fade-up var(--dur-fast) var(--ease) 600ms forwards;
}

.hero__contact:hover,
.hero__contact:focus-visible {
  color: var(--black);
  border-color: var(--black);
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-1);
  opacity: 0;
  animation: fade-up var(--dur-fast) var(--ease) 700ms forwards;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__col--right {
  text-align: right;
}

.site-footer__brand {
  color: var(--black);
  font-weight: 600;
}

/* ---------------------------------------------------------
   Motion
--------------------------------------------------------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grow-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .status,
  .hero__eyebrow,
  .hero__line,
  .hero__text,
  .hero__contact,
  .site-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__rule {
    animation: none !important;
    transform: none !important;
  }

  .status__dot {
    animation: none !important;
  }
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 640px) {
  .page {
    gap: 2.5rem;
  }

  .hero__eyebrow {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .site-footer {
    align-items: flex-start;
  }

  .site-footer__col--right {
    text-align: left;
  }
}
