/* ==========================================================================
   Niinimäki Suspension: tyylit
   Värit, fontit ja mitat löytyvät :root-lohkosta heti alta.
   ========================================================================== */

:root {
  /* Värit */
  --bg:            #0d0d0f;
  --bg-alt:        #121216;
  --surface:       #17171c;
  --surface-2:     #1e1e25;
  --border:        #26262e;
  --border-strong: #343440;

  --text:          #f4f4f6;
  --text-muted:    #a3a3af;
  --text-dim:      #74747f;

  --accent:        #ff6b00;
  --accent-soft:   #ff8c33;
  --accent-dim:    rgba(255, 107, 0, 0.12);

  /* Typografia */
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Mitat */
  --maxw:      1180px;
  --maxw-text: 68ch;
  --radius:    4px;
  --nav-h:     68px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Hero-videon värinkäsittely. Näitä säätämällä video himmenee tai
     kirkastuu. 0 = ei vaikutusta, 1 = täysi.
       grayscale  0 = alkuperäiset värit, 1 = täysin harmaa
       brightness 1 = alkuperäinen kirkkaus, alle 1 tummentaa
       saturate   1 = alkuperäinen värikylläisyys, alle 1 haalistaa */
  --hero-video-grayscale:  0.55;
  --hero-video-brightness: 0.68;
  --hero-video-saturate:   0.75;
  --hero-video-contrast:   1.05;
}

/* --------------------------------------------------------------- Perusta */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #000;
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ Apuluokat */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 18px;
}

.section-lead {
  color: var(--text-muted);
  max-width: var(--maxw-text);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* Paikkamerkki: korvattava tieto näkyy luonnoksessa keltaisena.
   Kun oikea tieto on paikallaan, poista <span class="ph"> ympäriltä. */
.ph {
  display: inline-block;
  background: rgba(255, 193, 7, 0.13);
  border: 1px dashed rgba(255, 193, 7, 0.55);
  color: #ffce4d;
  padding: 0 7px;
  border-radius: 3px;
  font-size: 0.92em;
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
}

/* ------------------------------------------------------------- Painikkeet */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #100b06; }
.btn--primary:hover { background: var(--accent-soft); color: #100b06; }

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------- Luonnos-banneri */

.draft-bar {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, #2a1d05, #1c1509);
  border-bottom: 1px solid rgba(255, 193, 7, 0.3);
  font-size: 13.5px;
  color: #e8d9b0;
}
.draft-bar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 24px;
  max-width: var(--maxw);
  margin-inline: auto;
}
.draft-bar strong { color: #ffce4d; font-weight: 700; }
.draft-bar__close {
  margin-left: auto;
  flex: none;
  background: none;
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: #e8d9b0;
  width: 26px; height: 26px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.draft-bar__close:hover { background: rgba(255, 193, 7, 0.15); color: #fff; }
.draft-bar[hidden] { display: none; }

/* ------------------------------------------------------------- Navigaatio */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.logo__mark { flex: none; }
.logo__text {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1;
}
.logo__text b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo__text span {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-top: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}
.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--text); }

.nav__cta { flex: none; padding: 11px 20px; }

.nav__toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  width: 42px; height: 38px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--text);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  min-height: min(90vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Taustakuva on pystykuva, joten leveällä näytöllä siitä rajautuu vaakakaistale.
     38 % pitää ajajan ja pyörän kaistaleen sisällä. */
  object-position: 50% 38%;
  filter: grayscale(0.35) contrast(1.05);
}
/* Videokerros kuvan päällä. Koko kerros häivytetään esiin vasta kun
   ensimmäinen video oikeasti pyörii, jottei kuvan ja videon välissä
   välähdä mustaa. */
.hero__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero__video.is-ready { opacity: 1; }

.hero__video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter:
    grayscale(var(--hero-video-grayscale))
    brightness(var(--hero-video-brightness))
    saturate(var(--hero-video-saturate))
    contrast(var(--hero-video-contrast));
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
/* Aktiivinen video näkyy, toinen odottaa vuoroaan näkymättömänä. */
.hero__video-el.is-active { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,13,15,0.75) 0%, rgba(13,13,15,0.45) 35%, rgba(13,13,15,0.94) 100%),
    linear-gradient(90deg, rgba(13,13,15,0.9) 0%, rgba(13,13,15,0.25) 65%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 56px;
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  max-width: 15ch;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__lead {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: #cfcfd8;
  max-width: 56ch;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero-alanauha */
.tickerbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.tickerbar ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tickerbar li {
  flex: 1 1 200px;
  padding: 22px 24px;
  border-right: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tickerbar li:last-child { border-right: none; }
.tickerbar li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}

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

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
  z-index: 3;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.card:hover::after { transform: scaleX(1); }

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); filter: grayscale(0); }

.card__body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card__num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.card h3 { font-size: 1.55rem; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card__list {
  list-style: none;
  padding: 16px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--border);
}
.card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.card__list li:last-child { margin-bottom: 0; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 1px;
  background: var(--accent);
}

/* --------------------------------------------------------- Näin se toimii */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: 34px 28px 38px;
}
.step__num {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.32rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.93rem; }

/* ------------------------------------------------------- Usein kysyttyä */

.kysymykset {
  margin-top: clamp(52px, 7vw, 88px);
  max-width: 820px;
}
.kysymykset__otsikko {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.kysymys {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
  transition: border-color 0.2s var(--ease);
}
.kysymys:last-child { margin-bottom: 0; }
.kysymys[open] { border-color: var(--border-strong); }
.kysymys:hover { border-color: var(--border-strong); }

.kysymys summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  list-style: none;
  /* Oletusnuoli pois, tilalle oma merkki alla. */
}
.kysymys summary::-webkit-details-marker { display: none; }
.kysymys summary::marker { content: ""; }

/* Plus-merkki, joka kääntyy miinukseksi kun vastaus on auki. */
.kysymys summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 14px no-repeat;
  transition: transform 0.25s var(--ease);
}
.kysymys[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat;
}

.kysymys__vastaus {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.kysymys__vastaus p { margin-bottom: 0.9em; }
.kysymys__vastaus p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------- Split (kuva + teksti) */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.split__media {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px rgba(0,0,0,0.55);
  pointer-events: none;
}

.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li {
  position: relative;
  padding: 13px 0 13px 34px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.97rem;
}
.checklist li:first-child { border-top: 1px solid var(--border); }
.checklist li strong { color: var(--text); font-weight: 600; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 1.28em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------- Hinnasto */

.pricing {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.pricing__row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.pricing__row:last-child { border-bottom: none; }
.pricing__row:hover { background: var(--surface-2); }
.pricing__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  flex: 1 1 220px;
}
.pricing__desc { color: var(--text-dim); font-size: 0.88rem; flex: 2 1 240px; }
.pricing__price {
  flex: none;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
/* "alk." on pienempi kuin luku, jotta hinta erottuu ensin. */
.pricing__alk {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 7px;
  vertical-align: 0.35em;
}
.pricing__note {
  color: var(--text-dim);
  font-size: 0.87rem;
  margin-top: 18px;
}

/* Selitys siitä mistä hinta muodostuu, hinnaston yläpuolella */
.hinta-selite {
  max-width: 820px;
  margin-bottom: clamp(34px, 4vw, 46px);
}
.hinta-selite h3 { font-size: 1.4rem; margin-bottom: 14px; }
.hinta-selite p { color: var(--text-muted); font-size: 0.99rem; }

.hinta-selite__lista {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 10px;
}
.hinta-selite__lista li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hinta-selite__lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}
.hinta-selite__lista strong { color: var(--text); font-weight: 600; }

/* Hinnaston alaotsikot: Muut palvelut, Maksutavat */
.hinnasto__alaotsikko {
  font-size: 1.5rem;
  margin-top: clamp(44px, 6vw, 72px);
  margin-bottom: 18px;
}

/* ------------------------------------------------------------ Maksutavat */

.maksutavat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
}

.maksutavat__lista {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.maksutavat__lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
}
.maksutavat__lista li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}

/* Laskutusehto erottuu, koska se on asiakkaalle sitova tieto. */
.maksutavat__ehto {
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 20px;
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------- Galleria */

/* Vaakasuuntainen kuvanauha. Kuvilla on kiinteä korkeus ja vapaa leveys,
   jolloin jokainen säilyttää oman muotonsa eikä mitään rajaudu pois.
   Uuden kuvan lisääminen ei vaadi asettelun muuttamista. */

.galleria { position: relative; }

.galleria__raita {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  /* Vierityspalkki piiloon, vieritys toimii silti kosketuksella ja hiirellä. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.galleria__raita::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .galleria__raita { scroll-behavior: auto; }
}

.galleria__raita figure {
  margin: 0;
  flex: 0 0 auto;
  height: clamp(230px, 32vw, 380px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  scroll-snap-align: start;
}
.galleria__raita img {
  height: 100%;
  width: auto;
  /* Kumoaa globaalin img { max-width: 100% } -säännön, joka litistäisi
     leveät kuvat kapeiksi. */
  max-width: none;
  object-fit: cover;
  filter: grayscale(0.35);
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}
.galleria__raita figure:hover img { transform: scale(1.04); filter: grayscale(0); }

/* Reunojen häivytys kertoo että nauha jatkuu näkymän ulkopuolelle. */
.galleria::before,
.galleria::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.galleria::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}
.galleria::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-alt), transparent);
}
.galleria.on-vasemmalla::before { opacity: 1; }
.galleria.on-oikealla::after   { opacity: 1; }

/* Nuolinapit */
.galleria__nuoli {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), opacity 0.25s var(--ease);
}
.galleria__nuoli:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(13, 13, 15, 0.95);
}
.galleria__nuoli:disabled { opacity: 0; pointer-events: none; }
.galleria__nuoli[hidden] { display: none; }

.galleria__nuoli--vasen { left: -10px; }
.galleria__nuoli--oikea { right: -10px; }

/* Kosketusnäytöillä sormella vieritys on luontevampaa kuin nappien
   osuminen, joten nuolet piilotetaan. */
@media (hover: none) {
  .galleria__nuoli { display: none; }
}

/* --------------------------------------------------------------- CTA-nauha */

.cta-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
}
.cta-band__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.5);
}
.cta-band__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,13,15,0.96) 25%, rgba(13,13,15,0.5) 100%);
}
/* HUOM: padding-block, ei padding-lyhennettä. Lyhenne nollaisi .wrap-luokan
   padding-inline-arvon, jolloin sisältö liimautuisi selaimen laitaan. */
.cta-band__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(56px, 8vw, 96px);
}
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 20ch; margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); max-width: 50ch; margin-bottom: 28px; }

/* --------------------------------------------------------------- Yhteys */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.info-list li:first-child { border-top: 1px solid var(--border); }
.info-list__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex: none;
  width: 112px;
  padding-top: 5px;
}
.info-list__value { font-size: 1.02rem; }
.info-list__value a { color: var(--text); text-decoration: none; }
.info-list__value a:hover { color: var(--accent); }
.info-list__value small { display: block; color: var(--text-dim); font-size: 0.84rem; margin-top: 3px; }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  transition: border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }

.form__note { color: var(--text-dim); font-size: 0.82rem; margin-top: 14px; }

/* ----------------------------------------------------------- Löydä perille */

.perille {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--border);
}

.perille__ohje h3 { font-size: 1.7rem; margin-bottom: 16px; }
.perille__ohje p { color: var(--text-muted); font-size: 0.97rem; }
.perille__ohje strong { color: var(--text); }

.perille__vinkki { font-size: 0.9rem; margin-top: 18px; }

/* Karttaruutu, ennen ja jälkeen latauksen */
.perille__kartta {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.perille__kartta iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  /* Vaalea karttapohja sopii tummaan sivuun paremmin hieman vaimennettuna. */
  filter: grayscale(0.25) contrast(0.95) brightness(0.92);
}

.kartta__portti {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
  text-align: center;
  color: var(--text-dim);
  background:
    repeating-linear-gradient(
      45deg,
      transparent, transparent 14px,
      rgba(255, 255, 255, 0.014) 14px, rgba(255, 255, 255, 0.014) 28px
    ),
    var(--surface);
}
.kartta__teksti { color: var(--text-muted); font-size: 0.92rem; max-width: 34ch; }
.kartta__napit { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

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

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer__blurb { color: var(--text-dim); font-size: 0.9rem; max-width: 42ch; margin-top: 16px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 48px; }
.footer__nav h4 { font-size: 0.95rem; margin-bottom: 14px; color: var(--text-muted); letter-spacing: 0.1em; }
.footer__nav ul { list-style: none; padding: 0; margin: 0; }
.footer__nav li { margin-bottom: 9px; }
.footer__nav a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }
.footer__nav a:hover { color: var(--accent); }
.footer__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ------------------------------------------------------- Ilmestymisanimaatio */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  /* Varmistus: hero-video piilotetaan myös tyyleillä, vaikka script.js
     jättääkin sen jo lataamatta. Taustakuva jää näkyviin. */
  .hero__video { display: none; }
}

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

@media (max-width: 900px) {
  .split, .contact { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { border-bottom: 1px solid var(--border); }
  .nav__links li:last-child { border-bottom: none; }
  .nav__links a { display: block; padding: 15px 0; font-size: 15px; }

  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .hero { min-height: 620px; }
  .hero__inner { padding-top: 90px; }
  .hero__actions .btn { flex: 1 1 100%; }

  .form__grid { grid-template-columns: 1fr; }
  .info-list li { flex-direction: column; gap: 4px; }
  .info-list__label { width: auto; padding-top: 0; }

  .pricing__price { margin-left: 0; }
  .draft-bar__inner { align-items: flex-start; }
}

@media (max-width: 480px) {
  /* Kapealla näytöllä kuvanauha ulottuu reunasta reunaan, jolloin
     seuraavan kuvan reuna näkyy ja vieritys on ilmeisempää. */
  .galleria__raita { padding-inline: 24px; margin-inline: -24px; }
}
