/* ===== VARIABLES ===== */
:root {
  --dark: #0a0a0a;
  --dark-elev: #111111;
  --light: #f2f2f0;
  --light-elev: #ffffff;
  --ink: #0a0a0a;
  --ink-muted: #6e6e6e;
  --gold: #c9a86c;
  --gold-dim: rgba(201, 168, 108, 0.15);
  --line-dark: rgba(255,255,255,0.06);
  --line-light: rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1000;
  background: transparent;
}
.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #e8d5b0);
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.section--dark {
  background: var(--dark);
  color: var(--light);
}

.section--light {
  background: var(--light);
  color: var(--ink);
}

/* ===== HERO ===== */
#hero { transform-style: preserve-3d; }

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  will-change: transform;
}
.orb--1 {
  width: 50vw; height: 50vw;
  top: -10%; right: -15%;
  background: rgba(201, 168, 108, 0.12);
  animation: floatOrb 12s ease-in-out infinite alternate;
}
.orb--2 {
  width: 35vw; height: 35vw;
  bottom: -10%; left: -10%;
  background: rgba(255,255,255,0.03);
  animation: floatOrb 15s ease-in-out infinite alternate-reverse;
}
@keyframes floatOrb {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px,40px) scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
  padding: 40px 24px;
  transform-style: preserve-3d;
}

/* Logo card */
.logo-card {
  position: relative;
  width: min(72vw, 340px);
  aspect-ratio: 1 / 1;
  background: var(--light);
  border-radius: 24px;
  display: grid;
  place-items: center;
  padding: 28px;
  transform-style: preserve-3d;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.1);
  will-change: transform;
}

.logo-card__shine {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(125deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 70%);
  background-size: 250% 250%;
  animation: shineSweep 5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}
@keyframes shineSweep {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

.logo-card__img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateZ(40px);
  backface-visibility: hidden;
}

/* Hero text */
.hero-text { transform-style: preserve-3d; }

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.02em;
}

.hero-title .char {
  display: inline-block;
  transform-origin: center bottom;
  will-change: transform, opacity;
}

.hero-title .spacer {
  display: inline-block;
  width: 0.35em;
}

.hero-subtitle {
  margin-top: 24px;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  opacity: 0.45;
}
.scroll-hint__arrow {
  width: 32px;
  height: 32px;
  animation: arrowBounce 2s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ===== KONTAKT SECTION ===== */
#kontakt { transform-style: preserve-3d; }

.contact-inner {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  padding: 80px 32px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  transform-style: preserve-3d;
}

.contact-header { transform-style: preserve-3d; }

.contact-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.contact-title {
  font-size: clamp(3.2rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 24px;
}

.contact-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 440px;
}

/* Contact deck */
.contact-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  transform-style: preserve-3d;
}

.contact-card {
  position: relative;
  background: var(--light-elev);
  border: 1px solid var(--line-light);
  border-radius: 20px;
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  will-change: transform;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #e8d5b0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.1);
  border-color: rgba(201, 168, 108, 0.3);
}

.contact-card__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-card__value {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.contact-card__arrow {
  position: absolute;
  top: 32px; right: 32px;
  font-size: 1.4rem;
  color: var(--gold);
  transform: translate(-8px, 8px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-card:hover .contact-card__arrow {
  transform: translate(0, 0);
  opacity: 1;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 40px;
  border-top: 1px solid var(--line-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .hero-inner { gap: 36px; }
  .logo-card { width: min(78vw, 280px); padding: 20px; border-radius: 18px; }
  .contact-inner { padding: 60px 24px; gap: 48px; }
  .contact-card { padding: 28px 24px; }
  .site-footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
