:root {
  --black: #050505;
  --ink: #0a0d13;
  --navy: #071b3d;
  --blue: #0758ff;
  --blue-soft: #1f77ff;
  --pink: #ff2d8d;
  --white: #f5f4ef;
  --grey: #aeb5c2;
  --line: rgba(255,255,255,.16);
  --max: 1200px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: radial-gradient(rgba(255,255,255,.28) .6px, transparent .6px);
  background-size: 5px 5px;
  z-index: 50;
  mix-blend-mode: soft-light;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }
.eyebrow { letter-spacing: .16em; text-transform: uppercase; color: var(--blue-soft); font-weight: 900; font-size: .82rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,5,.91);
  border-bottom: 2px solid var(--blue);
  backdrop-filter: blur(12px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 1000; letter-spacing: .08em; }
.brand-mark { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; border: 2px solid var(--blue); }
.nav-toggle { display: none; background: none; border: 0; color: white; font-size: 2rem; }
.nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.nav a { text-decoration: none; text-transform: uppercase; font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.nav a:hover, .nav a:focus { color: var(--blue-soft); }

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--hero-image, url('assets/katsomo.jpg')) center 48% / cover no-repeat;
  filter: saturate(.7) contrast(1.1);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,18,56,.73) 48%, rgba(0,0,0,.28) 100%), linear-gradient(0deg, #050505 0%, transparent 47%);
}
.hero-content { padding: 120px 0 78px; max-width: 930px; }
.hero h1, .display-title {
  margin: .2em 0 .08em;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: clamp(4.5rem, 12vw, 10rem);
  line-height: .82;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 rgba(0,0,0,.45);
}
.hero h1 span { color: var(--blue-soft); display: block; }
.hero-lead { max-width: 800px; font-size: clamp(1.08rem, 2vw, 1.45rem); font-weight: 650; }
.hero-slogan { display: inline-block; margin-top: 18px; padding: 10px 14px; border-left: 6px solid var(--pink); background: rgba(0,0,0,.72); font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 18px; border: 2px solid var(--blue); background: var(--blue); text-decoration: none; text-transform: uppercase; font-weight: 1000; letter-spacing: .06em; box-shadow: 5px 5px 0 #000; }
.btn.alt { background: #090909; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 #000; }
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--blue); color: #fff; transform: rotate(-.7deg); }
.ticker-track { white-space: nowrap; font-weight: 1000; text-transform: uppercase; letter-spacing: .08em; padding: 12px 0; animation: ticker 26s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

section { padding: 95px 0; position: relative; }
section:nth-of-type(even) { background: var(--ink); }
.section-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 7vw, 90px); align-items: center; }
h2 { margin: .15em 0 .45em; font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: .92; text-transform: uppercase; letter-spacing: -.02em; }
h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; }
p { max-width: 74ch; }
.lead { font-size: 1.18rem; font-weight: 700; }
.poster-card { position: relative; background: #070707; border: 2px solid var(--blue); box-shadow: 14px 14px 0 var(--navy); transform: rotate(1.2deg); overflow: hidden; }
.poster-card img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; filter: contrast(1.1) saturate(.75); }
.poster-stats { padding: 22px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; }
.poster-stats div { border-bottom: 1px solid var(--line); padding: 8px 0; }

.declaration { border: 3px solid var(--blue); padding: clamp(28px, 5vw, 62px); background: linear-gradient(135deg, #050505, #071b3d); box-shadow: var(--shadow); }
.declaration strong { display: block; font-family: Impact, sans-serif; font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: .9; text-transform: uppercase; color: var(--white); }
.declaration strong::after { content: "."; color: var(--pink); }

.number-grid, .principles, .criteria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat, .principle, .criterion { padding: 25px; border: 1px solid var(--line); background: #080808; }
.stat b { display: block; font-family: Impact, sans-serif; font-size: clamp(2.4rem, 5vw, 5rem); color: var(--blue-soft); line-height: 1; }
.stat span { font-weight: 900; text-transform: uppercase; }
.principle { border-top: 5px solid var(--blue); }
.principle .num { color: var(--pink); font-size: 2rem; font-weight: 1000; }

.rule-meter { margin-top: 30px; border: 2px solid var(--line); padding: 18px; }
.meter { height: 28px; background: #252525; position: relative; overflow: hidden; }
.meter::before { content: ""; position: absolute; inset: 0 63% 0 0; background: var(--blue); }
.meter::after { content: "37 %"; position: absolute; left: 37%; top: 50%; transform: translate(-50%,-50%); font-weight: 1000; }
.meter-labels { display: flex; justify-content: space-between; gap: 10px; font-size: .72rem; text-transform: uppercase; margin-top: 10px; color: var(--grey); }

.criteria { counter-reset: criteria; list-style: none; padding: 0; display: grid; gap: 10px; }
.criteria li { counter-increment: criteria; border-left: 5px solid var(--blue); padding: 14px 18px; background: #0b0b0b; }
.criteria li::before { content: counter(criteria, decimal-leading-zero) " "; color: var(--pink); font-weight: 1000; }
.stamp { display: inline-block; margin: 28px 0; padding: 15px 20px; border: 4px double var(--blue); color: var(--blue-soft); font-weight: 1000; text-transform: uppercase; transform: rotate(-2deg); }

.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.glossary article { padding: 20px; background: #080808; border-bottom: 3px solid var(--blue); }
.glossary h3 { margin-top: 0; color: var(--blue-soft); }

.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 900; text-transform: uppercase; }
.faq details[open] summary { color: var(--blue-soft); }

.image-band { min-height: 52vh; background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,19,59,.35)), url('assets/yleisö.jpg') center / cover no-repeat; display: grid; place-items: center; text-align: center; }
.image-band h2 { max-width: 900px; text-shadow: 4px 4px 0 #000; }

.site-footer { border-top: 3px solid var(--blue); padding: 58px 0 24px; background: #030303; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.small { font-size: .85rem; color: var(--grey); }

.history-hero { --hero-image: url('../assets/vesitorni.jpg'); min-height: 72vh; }
.timeline { position: relative; display: grid; gap: 25px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 3px; background: var(--blue); }
.timeline article { margin-left: 48px; padding: 24px; background: #0a0a0a; border: 1px solid var(--line); }
.timeline article::before { content: ""; position: absolute; left: 7px; width: 19px; height: 19px; border-radius: 50%; background: var(--pink); border: 4px solid #050505; }

@media (max-width: 850px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 22px; background: #050505; border-bottom: 2px solid var(--blue); }
  .nav.open { display: grid; }
  .section-grid, .footer-grid { grid-template-columns: 1fr; }
  .number-grid, .principles, .criteria-grid { grid-template-columns: 1fr; }
  .glossary { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
