/* Skyvisual — sivuston tyylit
   Värit ja kirjasimet tulevat logosta: kultainen gradientti yönsinisellä pohjalla. */

/* Fontit ladataan sivustolta itseltään (ei Googlen palvelimilta), jotta kävijöiden IP-osoitteita ei välity kolmannelle osapuolelle. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-500-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-500-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #090c12;
  --night-2: #0e131c;
  --night-3: #151b26;
  --line: rgba(236, 230, 216, 0.12);
  --line-strong: rgba(236, 230, 216, 0.22);
  --ink: #ece6d8;
  --ink-2: #bdb6a7;
  --ink-3: #959baa;
  --gold: #c9a86a;
  --gold-hi: #ebddb5;
  --gold-lo: #8c6b35;
  --gold-grad: linear-gradient(100deg, #f1e6c6 0%, #d9be86 38%, #b48d4e 72%, #8c6b35 100%);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.4vw, 4.2rem);
  --step-5: clamp(2rem, 0.9rem + 4.4vw, 4.6rem);

  --gutter: clamp(20px, 4.5vw, 64px);
  --maxw: 1320px;
  --section: clamp(96px, 12vw, 176px);
  --header-h: 88px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
video,
svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }

a,
button,
summary,
label { -webkit-tap-highlight-color: rgba(201, 168, 106, 0.18); touch-action: manipulation; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: var(--night); }

/* piilotettu SVG-symbolikirjasto (ennen inline-tyylinä; nyt CSP sallii vain tyylitiedostot) */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--night);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Logo ---------- */

/* drooni ja lentorata sanamerkin yläpuolella, kuten alkuperäisessä logossa */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.brand-logo {
  height: 56px;
  width: auto;
  aspect-ratio: 320 / 75;
  overflow: visible;
  transition: height 0.4s var(--ease);
}
.site-header.is-solid .brand-logo { height: 48px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-header.is-solid {
  --header-h: 72px;
  background: rgba(9, 12, 18, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav ul {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
  margin: 0; padding: 0;
}
.nav a {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0.14em; bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold-hi); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 999px;
  height: 44px;
  padding: 0 18px;
  font: 600 0.8rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--night);
  display: flex;
  flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) max(40px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.mobile-menu ul { list-style: none; margin: auto 0; padding: 0; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu ul a {
  display: block;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  text-decoration: none;
}
.mobile-menu ul a[aria-current="page"] { color: var(--gold-hi); }
.mobile-menu .btn { align-self: flex-start; }

/* ---------- Buttons ---------- */

.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 28px;
  border-radius: 999px;
  font: 600 0.82rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  background: var(--gold-grad);
  color: #15100a;
  border-color: rgba(241, 230, 198, 0.4);
}
.btn-gold:hover { filter: brightness(1.08); }
.btn-line {
  border-color: rgba(236, 230, 216, 0.55);
  color: var(--ink);
  background: transparent;
}
.btn-line:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.btn-small { --btn-h: 42px; padding: 0 20px; font-size: 0.74rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--gold-hi);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 106, 0.5);
  min-height: 44px;
}
.text-link:hover { text-decoration-color: var(--gold-hi); }

/* ---------- Hero (etusivu) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #05070b;
}
.hero-media,
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* elokuvamainen värimäärittely: matalampi valotus, kontrastia, hillityt värit */
.hero .hero-media video,
.hero .hero-media img {
  filter: brightness(0.85) contrast(1.1) saturate(0.84);
  /* tummennuksen paluu liukuu pehmeästi (alkaa jo ennen autoklipin loppua, ks. main.js) */
  transition: filter var(--return-dur, 1s) cubic-bezier(0.45, 0, 0.55, 1);
}
/* tummennus omana kerroksenaan, jotta sen voi sammuttaa yksittäisten klippien ajaksi */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 5, 9, 0.66) 0%, rgba(4, 5, 9, 0.16) 24%, rgba(4, 5, 9, 0.22) 62%, rgba(4, 5, 9, 0.22) 100%),
    radial-gradient(ellipse 120% 95% at 50% 46%, rgba(4, 5, 9, 0) 40%, rgba(4, 5, 9, 0.66) 100%),
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(4, 5, 9, 0.32), rgba(4, 5, 9, 0) 75%),
    rgba(10, 16, 30, 0.12);
  transition: opacity var(--return-dur, 1s) cubic-bezier(0.45, 0, 0.55, 1);
}
/* alareunan häivytys sivun taustaan pysyy aina */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 12, 18, 0) 62%, rgba(9, 12, 18, 0.98) 100%);
}
/* tummennuksen poisto autoklipin alussa on nopea, jotta se osuu leikkaukseen */
.hero.is-ungraded .hero-media video { filter: none; transition-duration: 0.12s; }
.hero.is-ungraded::after { opacity: 0; transition-duration: 0.12s; }

.hero-copy {
  text-align: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 120px;
  max-width: 1400px;
}
.hero-title {
  font-size: clamp(1.9rem, 0.7rem + 3.3vw, 3.7rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.16;
  color: #fbf7ee;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.hero-title .line { display: block; margin-right: -0.1em; }
.hero-sub {
  max-width: 36rem;
  margin: 26px auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--gold-hi);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

/* yksi orkestroitu latausliike: otsikon välistys asettuu paikalleen */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line {
    animation: settle 1.8s var(--ease) both;
  }
  .hero-title .line:nth-child(2) { animation-delay: 0.18s; }
  .hero-sub,
  .hero-cta,
  .hero-controls {
    animation: fade-in 1.2s var(--ease) 0.9s both;
  }
}
@keyframes settle {
  from { opacity: 0; letter-spacing: 0.3em; filter: blur(6px); }
  to { opacity: 1; letter-spacing: 0.1em; filter: blur(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.hero-controls {
  position: absolute;
  right: clamp(20px, 9vw, 150px);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.video-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 106, 0.7);
  background: rgba(9, 12, 18, 0.2);
  color: var(--gold-hi);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}
.video-toggle:hover { background: rgba(201, 168, 106, 0.16); }
.video-toggle svg { width: 16px; height: 16px; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
.scroll-line {
  width: 1px;
  height: clamp(60px, 12vh, 120px);
  background: linear-gradient(180deg, rgba(235, 221, 181, 0), var(--gold-hi));
}

/* ---------- Alasivujen hero ---------- */

.page-hero {
  position: relative;
  min-height: clamp(520px, 74vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #05070b;
}
.page-hero .hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.7) 0%, rgba(5, 7, 11, 0.25) 35%, rgba(9, 12, 18, 0.97) 100%);
}
.page-hero .wrap { padding-bottom: clamp(56px, 9vw, 112px); }
.page-hero h1 {
  font-size: var(--step-5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 16ch;
}
.page-hero .lead { margin-top: 24px; max-width: 38rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.page-hero.is-plain { min-height: clamp(420px, 56vh, 560px); background: radial-gradient(ellipse 80% 90% at 70% 0%, #172033 0%, var(--night) 70%); }
.page-hero.is-plain::after { display: none; }

/* ---------- Lentoreitti (etusivun kantava elementti) ---------- */

.journey { position: relative; }
.journey > section { position: relative; z-index: 1; }
.flight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.flight .flight-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flight .route-dots { stroke: rgba(201, 168, 106, 0.32); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0 7; fill: none; }
.flight .route-trail { stroke: url(#route-grad); stroke-width: 1.2; fill: none; }
.flight-drone {
  position: absolute;
  left: 0; top: 0;
  width: 64px;
  height: 32px;
  margin: -16px 0 0 -32px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
  filter: drop-shadow(0 0 14px rgba(201, 168, 106, 0.35));
}
@media (max-width: 760px) { .flight { display: none; } }

/* ---------- Osioiden yhteiset ---------- */

.section { padding-block: var(--section); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 88px); max-width: 46rem; }
.section-head h2 { font-size: var(--step-4); }
.section-head p { color: var(--ink-2); max-width: 36rem; }
.section-head.is-split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
}

/* Intro */
/* Väite ja "Erotu joukosta" samalla rivillä, alareunat tasattuina: ei tyhjää kerrosta niiden väliin */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px clamp(20px, 3vw, 40px);
  align-items: center;
}
.intro-statement {
  grid-column: 1 / span 7;
  font-family: var(--serif);
  font-size: var(--step-4);
  line-height: 1.12;
  font-weight: 500;
  max-width: 18ch;
}
.intro-side {
  grid-column: 8 / span 5;
  padding-left: clamp(20px, 2.5vw, 36px);
  border-left: 1px solid var(--gold);
}
.intro-kicker {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.05;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro-side p {
  margin-top: 16px;
  max-width: 30ch;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-2);
}

/* Palvelut: laajenevat siivut */
.slices {
  display: flex;
  gap: 2px;
  height: clamp(520px, 72vh, 720px);
  list-style: none;
  margin: 0; padding: 0;
}
.slice { flex: 1 1 0; min-width: 0; transition: flex-grow 0.7s var(--ease); position: relative; }
.slice a {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 2.6vw, 40px);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.slice-media,
.slice-media img,
.slice-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.slice-media video { opacity: 0; transition: opacity 0.6s var(--ease); }
.slice.is-active .slice-media video.is-playing { opacity: 1; }
.slice a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 12, 18, 0.15) 30%, rgba(9, 12, 18, 0.9) 100%);
  transition: background-color 0.6s var(--ease);
  background-color: rgba(9, 12, 18, 0.38);
}
.slice.is-active a::before { background-color: rgba(9, 12, 18, 0); }
.slice-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold-hi);
  margin-bottom: auto;
}
.slice h3 { font-size: var(--step-2); max-width: 12ch; transition: font-size 0.7s var(--ease); }
.slice.is-active h3 { font-size: var(--step-3); }
.slice-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease), opacity 0.5s var(--ease);
  opacity: 0;
}
.slice-body > div { overflow: hidden; }
.slice-body p { margin-top: 14px; max-width: 30rem; color: var(--ink); }
.slice-body .more {
  display: inline-block;
  margin-top: 18px;
  color: var(--gold-hi);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 106, 0.5);
  text-underline-offset: 0.25em;
}
.slice.is-active { flex-grow: 1.7; }
.slice.is-active .slice-body { grid-template-rows: 1fr; opacity: 1; }

/* Työt: porrastetut kehykset */
/* Työt: tasainen kahden sarakkeen ruudukko, kaikki samassa 16:9-kehyksessä */
.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 72px) clamp(20px, 3vw, 40px);
}
.work { margin: 0; }
.works .work-frame { aspect-ratio: 16 / 9; }
.work-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--night-3);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.work-frame img,
.work-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.work-frame video { opacity: 0; transition: opacity 0.6s var(--ease), transform 1.2s var(--ease); }
.work-frame video.is-playing { opacity: 1; }
.work-frame:hover img,
.work-frame:hover video { transform: scale(1.03); }
.play-chip {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: rgba(9, 12, 18, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font: 600 0.74rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.play-chip svg { width: 22px; height: 22px; }
.work figcaption { margin-top: 20px; display: grid; gap: 6px; }
.work h3 { font-size: var(--step-2); }
.work .meta { color: var(--ink-3); font-size: 0.95rem; }

/* Prosessi */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 36px; border-top: 1px solid var(--line-strong); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -0.62em;
  left: 0;
  padding-right: 14px;
  background: var(--night);
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold-hi);
}
.steps h3,
.steps h4 { font-family: var(--serif); font-weight: 500; font-size: var(--step-2); line-height: 1.1; }
.steps p { margin-top: 12px; color: var(--ink-2); font-size: 1rem; }

/* Kehotus */
.cta-band {
  position: relative;
  min-height: clamp(420px, 60vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-band .bg {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
  will-change: transform;
}
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(9, 12, 18, 0.9) 0%, rgba(9, 12, 18, 0.55) 55%, rgba(9, 12, 18, 0.2) 100%),
    linear-gradient(180deg, var(--night) 0%, rgba(9, 12, 18, 0) 22%, rgba(9, 12, 18, 0) 78%, var(--night) 100%);
}
.cta-band h2 { font-size: var(--step-4); max-width: 15ch; }
.cta-band p { margin-top: 22px; max-width: 32rem; color: var(--ink-2); }
.cta-band .btn { margin-top: 36px; }

/* ---------- Palvelut-sivu ---------- */

/* Kaksi palvelua: teksti pysyy paikallaan, kun kuvat ja video vierivät sen vierellä */
.offer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px clamp(20px, 3vw, 40px);
  align-items: start;
}
.offer + .offer { margin-top: var(--section); }
.offer-text { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); }
.offer-media { grid-column: 7 / span 6; display: grid; gap: clamp(16px, 2vw, 28px); }
.offer:nth-child(even) .offer-text { grid-column: 8 / span 5; }
.offer:nth-child(even) .offer-media { grid-column: 1 / span 6; grid-row: 1; }
.offer h2 { font-size: var(--step-4); }
.offer-price {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: var(--step-1);
  color: var(--ink-2);
}
.offer-price strong {
  font-weight: 600;
  font-size: var(--step-3);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.offer-price .vat { margin-left: 6px; font-family: var(--sans); font-size: 0.85rem; color: var(--ink-3); }
.offer .lead {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--ink);
}
.offer-text > p:not(.lead):not(.offer-claim) { margin-top: 18px; color: var(--ink-2); }
.offer-claim {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--gold-hi);
}
.offer h3,
.deliver-body h3 {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-hi);
}
.offer-main.work-frame { aspect-ratio: 4 / 5; }
.offer-stills { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin: 0; }
.offer-stills figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-3); }
.offer-stills img { width: 100%; height: 100%; object-fit: cover; }

/* Mitä saat */
.deliver { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 18%, var(--night-2) 82%, var(--night) 100%); }
.deliver-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px clamp(40px, 7vw, 120px);
  align-items: start;
}
.deliver-intro { max-width: 44rem; }
.deliver-intro h2 { font-size: var(--step-4); }
.deliver-intro .lead { margin-top: 22px; font-family: var(--serif); font-size: var(--step-3); line-height: 1.2; color: var(--gold-hi); }
/* tukilause suoraan johdannon alla, samassa sarakkeessa */
.deliver-intro .deliver-text { margin-top: 18px; max-width: 36rem; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.deliver-steps { margin-top: clamp(64px, 8vw, 112px); }
.deliver-steps-title {
  margin-bottom: 48px;
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.price-grid h3 {
  margin-bottom: 40px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-hi);
}
/* vaiheiden numerot peittävät viivan osion omalla taustavärillä */
.deliver .steps li::before { background: var(--night-2); }

/* Hinta: sisältö vasemmalla, hintaan vaikuttavat tekijät oikealla */
.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px clamp(40px, 6vw, 96px);
  align-items: start;
}
.price-grid h3 { margin-bottom: 16px; }
.price-included .ticks { margin-top: 0; }

/* Mihin videoita voi käyttää */
.formats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px);
  list-style: none;
  margin: 0; padding: 0;
}
.formats li { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.format-shape { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.formats h3 { margin-top: 18px; font-size: var(--step-2); }
.formats p { margin-top: 10px; color: var(--ink-2); }
.ticks { list-style: none; margin: 12px 0 0; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

.factors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 6vw, 96px);
  list-style: none;
  margin: 0; padding: 0;
}
.factors li { padding: 28px 0; border-top: 1px solid var(--line-strong); }
.factors h3,
.factors h4 { font-family: var(--serif); font-weight: 500; font-size: var(--step-2); line-height: 1.1; }
.factors p { margin-top: 10px; color: var(--ink-2); }

/* ---------- Työt-sivu ---------- */

.case {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px clamp(20px, 3vw, 40px);
  align-items: start;
}
.case + .case { margin-top: clamp(96px, 10vw, 144px); }
.case .work-frame { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.case-title { grid-column: 1 / span 7; }
.case-title .meta { color: var(--ink-3); margin-top: 12px; }
.case h2 { font-size: var(--step-4); }
/* esittelyteksti otsikon alla, ennen videota */
.case-body { grid-column: 1 / span 7; margin-top: -12px; max-width: 40rem; color: var(--ink-2); }
.case-body p + p { margin-top: 14px; }

/* ---------- Meistä ---------- */

.story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px clamp(20px, 3vw, 40px);
}
.story-lead { grid-column: 1 / span 6; font-family: var(--serif); font-size: var(--step-3); line-height: 1.22; }
.story-body { grid-column: 8 / span 5; color: var(--ink-2); }
.story-body p + p { margin-top: 18px; }
.story-body p:first-child { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.gear { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.gear h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--gold-hi); }
.gear p { margin-top: 10px; }

/* Nostolause: keskitetty, iso ja kultainen */
.manifesto { text-align: center; }
.manifesto h2 {
  max-width: 20ch;
  margin-inline: auto;
  font-size: var(--step-4);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifesto p { max-width: 34rem; margin: 22px auto 0; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }

.frames {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.frames figure { margin: 0; overflow: hidden; background: var(--night-3); }
.frames img { width: 100%; height: 100%; object-fit: cover; }
/* leveä ilmakuva yläriville, kaksi sisäkuvaa sen alle rinnakkain */
.frames figure:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.frames figure:nth-child(2) { grid-column: 1 / span 6; aspect-ratio: 3 / 2; }
.frames figure:nth-child(3) { grid-column: 7 / span 6; aspect-ratio: 3 / 2; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  list-style: none;
  margin: 0; padding: 0;
}
.principles li { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.principles h3 { font-size: var(--step-2); color: var(--gold-hi); }
.principles.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.principles p { margin-top: 12px; color: var(--ink-2); }

/* ---------- Yhteystiedot ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px clamp(40px, 7vw, 120px);
  align-items: start;
}
.contact-info h2 { font-size: var(--step-3); }
.contact-info > p { margin-top: 18px; color: var(--ink-2); }
.contact-list { margin: 40px 0 0; display: grid; gap: 22px; }
.contact-list div { border-top: 1px solid var(--line); padding-top: 16px; }
.contact-list dt { color: var(--ink-3); font-size: 0.92rem; }
.contact-list dd { margin: 4px 0 0; font-family: var(--serif); font-size: var(--step-2); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-hi); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
/* align-content: start pitää kentät samankorkuisina, vaikka viereisellä kentällä olisi ohjeteksti */
.field { display: grid; gap: 8px; align-content: start; }
.field.is-wide { grid-column: 1 / -1; }
.field label,
.field legend { font-size: 0.95rem; font-weight: 500; color: var(--ink); padding: 0; }
.field .req { color: var(--gold-hi); }
.field .hint { font-size: 0.88rem; color: var(--ink-3); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--night-2);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-hi) 50%), linear-gradient(135deg, var(--gold-hi) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(236, 230, 216, 0.38); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 1px; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #e48a7a; }
.field .error { color: #f0a597; font-size: 0.9rem; }
.field .error:empty { display: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { color: var(--ink-3); font-size: 0.92rem; max-width: 26rem; }
.form-status { grid-column: 1 / -1; padding: 18px 20px; border-left: 2px solid var(--gold); background: var(--night-2); }
.form-status:empty { display: none; }
.form-status.is-error { border-left-color: #e48a7a; }

/* ---------- Videoikkuna ---------- */

.player {
  width: min(1280px, 100vw - 32px, (100vh - 140px) * 16 / 9);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
  overscroll-behavior: contain;
}
.player::backdrop { background: rgba(5, 7, 11, 0.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.player-head h2 { font-size: var(--step-2); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-embed { aspect-ratio: 16 / 9; background: #000; }
.player-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.player [hidden] { display: none; }
.player-close {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.player-close:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
@media (prefers-reduced-motion: no-preference) {
  .player[open] { animation: fade-in 0.35s var(--ease); }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: clamp(72px, 9vw, 120px) 0 36px; background: linear-gradient(180deg, var(--night) 0%, #06080c 100%); }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr));
  gap: 48px clamp(24px, 4vw, 64px);
}
.footer-brand .brand-logo { height: 74px; }
.footer-brand p { margin-top: 20px; color: var(--ink-3); max-width: 22rem; font-size: 1rem; }
.footer-col h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--gold-hi); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-flex; min-height: 36px; align-items: center; color: var(--ink-2); text-decoration: none; font-size: 1rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-col address { font-style: normal; color: var(--ink-2); font-size: 1rem; display: grid; gap: 4px; }
.footer-bottom {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  color: var(--ink-3);
  font-size: 0.9rem;
}

/* ---------- Responsiivisuus ---------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-actions .btn { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .intro-grid,
  .contact,
  .price-grid { grid-template-columns: 1fr; }
  .intro-statement,
  .intro-side { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; row-gap: 56px; }
  .section-head.is-split { grid-template-columns: 1fr; }
  .slices { flex-direction: column; height: auto; gap: 2px; }
  .slice { flex: none; }
  .slice a { position: relative; min-height: 360px; }
  .slice .slice-body { grid-template-rows: 1fr; opacity: 1; }
  .slice-media video { display: none; }
  .offer,
  .deliver-grid,
  .case,
  .story,
  .frames { grid-template-columns: minmax(0, 1fr); }
  .offer-text { position: static; }
  .offer-main.work-frame { aspect-ratio: 4 / 3; }
  .offer-text,
  .offer-media,
  .offer:nth-child(even) .offer-text,
  .offer:nth-child(even) .offer-media,
  .case-title,
  .case-body,
  .story-lead,
  .story-body,
  .frames figure:nth-child(n) { grid-column: 1 / -1; grid-row: auto; margin-top: 0; }
  .frames figure:nth-child(n) { aspect-ratio: 3 / 2; }
  .factors,
  .principles,
  .principles.is-two { grid-template-columns: 1fr; }
  .hero-controls { right: 20px; }
}

@media (max-width: 600px) {
  .brand-logo,
  .site-header.is-solid .brand-logo { height: 44px; }
  .hero-title { letter-spacing: 0.06em; }
  .hero-title .line { margin-right: -0.06em; }
  .hero-copy { padding-bottom: 140px; }
  .works { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .page-hero h1 { letter-spacing: 0.06em; }
}

@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  @keyframes settle {
    from { opacity: 0; letter-spacing: 0.2em; filter: blur(6px); }
    to { opacity: 1; letter-spacing: 0.06em; filter: blur(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.section.is-tight-top { padding-top: clamp(48px, 6vw, 96px); }
.section.is-flush-top { padding-top: 0; }
/* etusivun esittelyosio: kevyempi pystytila, ettei tekstien alle jää tyhjää kerrosta */
.section.is-intro { padding-block: clamp(72px, 8vw, 120px); }

/* Missä autamme teitä: johdanto hieman leipätekstiä isompana */
.section-head .help-lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }

/* Tietosuojaseloste (Yhteystiedot-sivu): kapea, rauhallinen lukupalsta */
.privacy { border-top: 1px solid var(--line); }
.privacy-body { max-width: 46rem; }
.privacy-body h2 { font-size: var(--step-4); }
.privacy-updated { margin-top: 10px; color: var(--ink-3); font-size: 0.95rem; }
.privacy-body h3 { margin-top: 40px; font-size: var(--step-2); color: var(--gold-hi); }
.privacy-body p { margin-top: 12px; color: var(--ink-2); }
.privacy-body a { color: var(--ink); }
.privacy-body .ticks { margin-top: 10px; }
.privacy-body .ticks li { color: var(--ink-2); }
.form-note a { color: var(--gold-hi); }
