:root {
  --ink: #e9ecf1;
  --muted: #9aa4b2;
  --accent: #c9d2de;
  --bg: #0b0e13;
  color-scheme: dark;
  --font: "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

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

html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Taustakuva hitaalla zoomauksella */
.bg {
  position: fixed;
  inset: -2%;
  background: var(--bg) url("assets/bg.jpg") center 62% / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
  z-index: -2;
}

.shade {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(11, 14, 19, 0) 0%, rgba(11, 14, 19, .55) 100%),
    linear-gradient(180deg, rgba(11, 14, 19, .35) 0%, rgba(11, 14, 19, 0) 40%, rgba(11, 14, 19, .6) 100%);
  z-index: -1;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12vh 24px 22vh;
}

.logo {
  margin: 0;
  width: min(560px, 82vw);
  line-height: 0;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .55));
  animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both;
}

.logo img { width: 100%; height: auto; }

.rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: clamp(28px, 5vh, 44px) 0 clamp(22px, 4vh, 32px);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: grow 1.2s .5s cubic-bezier(.2, .7, .2, 1) both;
}

.kicker {
  margin: 0;
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  font-weight: 300;
  letter-spacing: .32em;
  text-transform: uppercase;
  padding-left: .32em; /* tasapainottaa letter-spacingin */
  animation: rise 1.2s .7s cubic-bezier(.2, .7, .2, 1) both;
}

.lead {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(.98rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  letter-spacing: .02em;
  animation: rise 1.2s .9s cubic-bezier(.2, .7, .2, 1) both;
}

.contact {
  margin-top: 28px;
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  letter-spacing: .08em;
  padding: 12px 26px;
  border: 1px solid rgba(201, 210, 222, .35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: border-color .3s, background .3s;
}
.contact:hover { border-color: var(--accent); background: rgba(201, 210, 222, .08); }

.foot {
  position: fixed;
  left: 0; right: 0; bottom: 20px;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .14em;
  color: rgba(154, 164, 178, .7);
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }

@media (max-width: 700px) {
  .bg { background-position: 58% 70%; }
  .hero { padding-bottom: 18vh; }
  .kicker { letter-spacing: .22em; padding-left: .22em; }
}

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