/* premiere-reel — S8 living cover
   Palette: black #000000 · off-black #0C0C0C · white #FFFFFF ·
            muted #B8B8B8 (10.3:1 on black) · signal red #E8291C (4.8:1 on black)
   The living layer: three hand-authored gradient "stills" that ken-burns
   (slow scale + pan) and crossfade on a 24 s loop behind scanlines and a
   vignette — a showreel that never stops. No JS, no video file. */

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/fonts/big-shoulders-display-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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-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 {
  --black: #000000;
  --off: #0C0C0C;
  --off-2: #141414;
  --white: #FFFFFF;
  --muted: #B8B8B8;
  --red: #E8291C;
  --line: rgba(255, 255, 255, 0.16);
  --display: "Big Shoulders Display", "Haettenschweiler", "Arial Narrow", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
  --shell: 74rem;
  --gutter: 1.25rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
img { display: block; max-width: 100%; }

/* ---- demo banner ---- */
.demo-banner {
  display: block;
  position: relative;
  z-index: 5;
  background: var(--red);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}
.demo-banner b { font-weight: 800; }

/* ---- the living cover: ken-burns crossfade ---- */
.cover {
  position: relative;
  min-height: calc(100svh - 2.3rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.1rem var(--gutter) calc(1.1rem + env(safe-area-inset-bottom));
  isolation: isolate;
  background: var(--black);
}
.reel { position: absolute; inset: 0; z-index: -3; }
.reel-frame {
  position: absolute;
  inset: -6%;
  display: block;
  opacity: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  animation: reel-cut 24s linear infinite, ken-burns 24s ease-in-out infinite;
  will-change: transform, opacity;
}
/* still 1 — punainen lavavalo ja yleisömeri */
.reel-frame--1 {
  background-image:
    radial-gradient(60% 40% at 50% 96%, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 70%),
    radial-gradient(28% 55% at 22% 8%, rgba(232,41,28,0.55) 0%, rgba(232,41,28,0) 72%),
    radial-gradient(30% 60% at 76% 4%, rgba(232,41,28,0.45) 0%, rgba(232,41,28,0) 70%),
    radial-gradient(45% 30% at 50% 42%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #1A0503 0%, #0A0A0A 55%, #000000 100%);
  animation-delay: 0s, 0s;
}
/* still 2 — hallin valonheittimet */
.reel-frame--2 {
  background-image:
    radial-gradient(12% 8% at 18% 18%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 72%),
    radial-gradient(12% 8% at 50% 12%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 72%),
    radial-gradient(12% 8% at 82% 20%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 72%),
    radial-gradient(70% 45% at 50% 100%, rgba(232,41,28,0.28) 0%, rgba(232,41,28,0) 70%),
    linear-gradient(180deg, #050505 0%, #131313 62%, #000000 100%);
  animation-delay: -8s, -8s;
}
/* still 3 — bokeh, kamera tarkentaa yleisöön */
.reel-frame--3 {
  background-image:
    radial-gradient(9% 6% at 28% 62%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(7% 5% at 64% 48%, rgba(232,41,28,0.6) 0%, rgba(232,41,28,0) 70%),
    radial-gradient(11% 7% at 82% 72%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(14% 9% at 10% 30%, rgba(232,41,28,0.35) 0%, rgba(232,41,28,0) 70%),
    linear-gradient(160deg, #0E0E0E 0%, #000000 70%);
  animation-delay: -16s, -16s;
}
@keyframes reel-cut {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  29%  { opacity: 1; }
  36%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes ken-burns {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  36%  { transform: scale(1.16) translate3d(-2.5%, -1.8%, 0); }
  100% { transform: scale(1.16) translate3d(-2.5%, -1.8%, 0); }
}
.scanlines {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(180deg, rgba(0,0,0,0.35) 0 1px, rgba(0,0,0,0) 1px 3px);
}
.vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.85) 100%);
}

.cover-nav {
  width: min(100%, var(--shell));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.wordmark .dot { color: var(--red); }
.cover-nav a {
  text-decoration: none;
  color: var(--white);
  border: 1px solid var(--line);
  padding: 0.4rem 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.cover-nav a:hover { background: var(--red); border-color: var(--red); }

.cover-inner {
  flex: 1;
  width: min(100%, var(--shell));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.rec {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--red);
  animation: blink 2s steps(1, end) infinite;
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.15; } }

.cover h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.8rem, 19vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.cover h1 em { font-style: normal; color: var(--red); }
.lede {
  font-size: clamp(1rem, 3.6vw, 1.25rem);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

/* ---- cta ---- */
.pill {
  align-self: flex-start;
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--red);
  padding: 0.95rem 1.7rem;
  transition: transform 0.25s ease, background 0.25s ease;
}
.pill:hover { transform: translateY(-2px); background: #FF3A2C; }
.pill--ghost { background: transparent; color: var(--white); border: 1px solid var(--line); }
.pill--ghost:hover { background: rgba(255,255,255,0.08); }

/* ---- cover foot: timecode + progress ---- */
.cover-foot {
  width: min(100%, var(--shell));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.timecode {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.timecode--dim { color: var(--muted); }
.progress { flex: 1; height: 2px; background: rgba(255,255,255,0.2); overflow: hidden; }
.progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform-origin: left center;
  animation: sweep 8s linear infinite;
}
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- sections ---- */
main section {
  max-width: calc(var(--shell) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 7rem) var(--gutter);
}
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 2.25rem;
  max-width: 18ch;
}

/* ---- työt: numbered reel list ---- */
.reel-list { list-style: none; border-top: 1px solid var(--line); }
.reel-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.reel-list li:hover { background: var(--off); }
.reel-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1;
  padding-top: 0.15rem;
}
.reel-list h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.reel-list p { color: var(--muted); font-size: 0.95rem; max-width: 52ch; }
.tag {
  grid-column: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--white);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  justify-self: start;
}

/* ---- palvelut ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--off); padding: 1.6rem 1.4rem; }
.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.7rem;
}
.card p { color: var(--muted); font-size: 0.925rem; }
.card-meta {
  margin-top: 0.9rem;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white) !important;
}

/* ---- paketit ---- */
.price-list { border-top: 1px solid var(--line); }
.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.price-row h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.price-row p { color: var(--muted); font-size: 0.925rem; max-width: 46ch; }
.price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--red);
  white-space: nowrap;
}
.fineprint { margin-top: 1.1rem; font-size: 0.8rem; color: var(--muted); }

/* ---- tarina ---- */
.tarina-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }
.tarina-grid p { color: var(--muted); }
.stats {
  grid-column: 1 / -1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}
.stats b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1;
  color: var(--white);
}
.stats span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- yhteys ---- */
.yhteys-lede { color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }
.yhteys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.25rem; }
.yhteys-grid dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}
.yhteys-grid dd { font-size: 0.95rem; color: var(--muted); }

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.footer a { color: var(--white); }
.footer .small { margin-top: 0.3rem; font-size: 0.8125rem; }

/* ---- entrance ---- */
@media (prefers-reduced-motion: no-preference) {
  .cover-inner > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .cover-inner > :nth-child(2) { animation-delay: 0.07s; }
  .cover-inner > :nth-child(3) { animation-delay: 0.14s; }
  .cover-inner > :nth-child(4) { animation-delay: 0.21s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

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

/* ---- responsive ---- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tarina-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .yhteys-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 1.1rem; }
  .pill { align-self: stretch; text-align: center; }
  .cover-foot .timecode--dim { display: none; }
}

/* --- Tekoälyilmoitus (EU AI Act 50 art.) — 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 strong { font-weight: 600; }
