/* lightbox — S6 cinematic scroll, white variant
   Palette: paper #FFFFFF · ink #0E0E0E (18.9:1) · grey #5E5E5E (7.0:1)
   · hairline #DCDCDC (non-text). All colour comes from the artworks.
   One family: Hanken Grotesk, 200–900. No JS. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --paper: #FFFFFF;
  --ink: #0E0E0E;
  --grey: #5E5E5E;
  --hair: #DCDCDC;
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: 1.25rem;
  --shell: 68rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
svg { display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---- demo banner ---- */
.demo-banner {
  display: block;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}
.demo-banner b { font-weight: 800; }

/* ---- shared type ---- */
.kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.25rem;
}
h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; }
h1 em, h2 em { font-style: normal; font-weight: 800; }
.lede {
  max-width: 40ch;
  color: var(--grey);
  font-size: 1.0625rem;
  margin-top: 1.5rem;
}

/* ---- cover ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
}
.wordmark {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.topnav { display: flex; gap: 1.25rem; }
.topnav a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.topnav a:hover { color: var(--ink); border-color: var(--ink); }

.cover-inner {
  padding: 4.5rem var(--gutter) 3rem;
  max-width: var(--shell);
  margin: 0 auto;
  width: 100%;
}
h1 {
  font-size: clamp(2.75rem, 15vw, 8rem);
  font-weight: 200;
}
.scroll-hint {
  padding: 0 var(--gutter) 3.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
  max-width: var(--shell);
  margin: 0 auto;
  width: 100%;
}

/* ---- the reel: full-viewport frames ---- */
.reel { padding: 0 var(--gutter) 1rem; }
.frame {
  position: relative;
  margin: 0 0 1rem;
  border: 1px solid var(--hair);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper);
}
.art { width: 100%; height: 100%; }
.plate {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 1rem 0.65rem;
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
}
.plate b {
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-right: 0.5rem;
}
.plate i { font-style: italic; }

/* signature move: each frame lifts into view as it enters the viewport */
@supports (animation-timeline: view()) {
  .frame {
    animation: frame-in linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 26%;
  }
}
@keyframes frame-in {
  from { transform: translateY(26px) scale(0.965); }
  to { transform: none; }
}

/* ---- content bands ---- */
.band {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 4rem var(--gutter);
  border-top: 1px solid var(--hair);
}
.band h2 { font-size: clamp(1.75rem, 7.5vw, 3.25rem); }
.band--dark {
  max-width: none;
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
  margin-top: 3rem;
}
.band--dark .kicker,
.band--dark .lede,
.band--dark dd { color: #C9C9C9; }
.band--dark > * { max-width: var(--shell); margin-left: auto; margin-right: auto; }

.facts { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.facts > div { border-top: 1px solid var(--hair); padding-top: 0.75rem; }
.band--dark .facts > div { border-color: #3A3A3A; }
dt {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.25rem;
}
.band--dark dt { color: #C9C9C9; }
dd { font-size: 1rem; }

.list { list-style: none; margin-top: 2.5rem; display: grid; gap: 2rem; counter-reset: n; }
.list li {
  counter-increment: n;
  border-top: 1px solid var(--hair);
  padding-top: 1rem;
}
.list li::before {
  content: "0" counter(n);
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--grey);
  margin-bottom: 0.6rem;
}
.list h3 { font-size: 1.375rem; font-weight: 500; margin-bottom: 0.5rem; }
.list p { color: var(--grey); max-width: 44ch; }

.link-cta {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.3rem;
  transition: opacity 0.3s;
}
.link-cta:hover { opacity: 0.65; }

/* ---- footer ---- */
.footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 1rem;
  color: var(--grey);
}
.footer .wordmark { color: var(--ink); display: block; margin-bottom: 0.75rem; }
.footer .small { font-size: 0.8125rem; }
.footer b { font-weight: 700; }

/* Tekoälyilmoitus (EU AI Act 50 art.) — ks. webpages/kit/ai-disclosure/. */
.ai-note {
  margin: 1.5rem auto 0;
  max-width: 62ch;
  padding: 0 1rem 2rem;
  font-size: 0.75rem;
  line-height: 1.55;
}
.ai-note { margin-left: 0; padding-left: 0; }
.ai-note strong { font-weight: 600; }

/* ---- desktop ---- */
@media (min-width: 760px) {
  :root { --gutter: 2.5rem; }
  body { font-size: 1.0625rem; }
  .cover-inner { padding: 8rem var(--gutter) 4rem; }
  .lede { font-size: 1.1875rem; }
  .reel { padding: 0 var(--gutter) 2rem; }
  .frame {
    aspect-ratio: auto;
    height: min(86svh, 46rem);
    margin-bottom: 2.5rem;
  }
  .plate { padding: 0.9rem 1.6rem 0.85rem; font-size: 0.75rem; max-width: 34rem; }
  .band { padding: 7rem var(--gutter); }
  .band--dark { padding: 7rem var(--gutter); }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .facts--wide { grid-template-columns: repeat(2, 1fr); }
  .list { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; }
  .footer { padding: 5rem var(--gutter) 2rem; }
}

@media (min-width: 1100px) {
  .cover-inner { padding: 9rem var(--gutter) 5rem; }
  .band--split .list { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .frame { opacity: 1 !important; }
}
