/* anttinatunen.com — sivuston tyylit
   Rakenne: fontit → muuttujat → perus → navigaatio → hero → sisältö → osiot → komponentit → footer */

/* ---------- Fontit ---------- */
/* Latin-osajoukot WOFF2-muodossa (tools/fonts.md). Käsialafontit: block → ei koskaan rumaa varafonttia,
   teksti odottaa hetken näkymättömänä; leipäteksti: swap → näkyy heti järjestelmäfontilla. */
@font-face { font-family: 'LaLuxesScript'; src: url('../fonts/la-luxes-script-latin.woff2') format('woff2'); font-display: block; }
@font-face { font-family: 'BiroScript'; src: url('../fonts/biro-script-latin.woff2') format('woff2'); font-display: block; }
@font-face { font-family: 'Saira'; src: url('../fonts/saira-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

/* ---------- Muuttujat ---------- */
:root {
  --black: #000;
  --white: #fff;
  --red: #cd1717;
  --neon: #d10064;
  --green: #289d3c;
  --accent: var(--green);          /* navigaation alleviivaus, vaihtuu sivun mukaan */

  --font-body: 'Saira', sans-serif;
  --font-script: 'LaLuxesScript', Georgia, serif;
  --font-hand: 'BiroScript', Arial, sans-serif;

  --content: 750px;
  --wide: 1200px;
}
body.accent-red   { --accent: var(--red); }
body.accent-neon  { --accent: var(--neon); }
body.accent-green { --accent: var(--green); }
body.nav-dark     { --accent: currentColor; }

/* ---------- Perus ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 20px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .1em; }
p { margin: 0 0 25px; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin: 0 0 25px; }
h1 { font-family: var(--font-script); font-weight: 400; font-size: 4rem; line-height: 1.1; }
h2 { font-family: var(--font-hand); font-size: 3rem; line-height: 1.1; }
h3 { font-family: var(--font-hand); font-size: 2.5rem; line-height: 1.3; }
@media (min-width: 768px) { h1 { font-size: 6rem; } }
@media (min-width: 992px) { h1 { font-size: 9rem; } }
@media (max-width: 767px) { h2 { font-size: 2.7rem; } }

/* Sisältöleveydet */
.content { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: 20px; }
.wide    { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 20px; }

/* Välit (korvaavat WP:n spacer-blokit) */
.gap-xs { height: 10px; }
.gap-s  { height: 50px; }
.gap-m  { height: 80px; }
.gap-l  { height: 100px; }

/* ---------- Navigaatio ---------- */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 10px 25px 20px;
  transition: transform .3s ease-in-out, background-color .5s ease-in-out;
}
@media (min-width: 768px) { .site-nav { position: fixed; } }
.site-nav.scrolled { background-color: rgba(0, 0, 0, .95); }
.site-nav.hidden { transform: translateY(-100%); }

.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 15px 0;
  color: var(--white);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background-color: var(--accent);
  transition: width .3s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { width: calc(100% - 3px); }   /* kirjainväli lopussa pois */

/* Contact-sivulla valikko mustalla tekstillä isolla näytöllä (vaalea kuva) */
@media (min-width: 768px) {
  body.nav-dark .site-nav:not(.scrolled) a { color: var(--black); }
}

/* Mobiilivalikko */
.nav-toggle {
  display: none;
  position: absolute;
  top: 10px; right: 20px;
  width: 50px; height: 50px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle svg { width: 100%; height: 100%; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(0, 0, 0, .9);
  }
  .site-nav.open ul { display: flex; }
  .site-nav.open a { font-size: 1rem; letter-spacing: 4px; }
  .site-nav.open .nav-toggle { z-index: 2; }
  .site-nav.open .icon-open { display: none; }
  .site-nav.open .icon-close { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
  /* Sumea esikatselu (--lq, ~200 t upotettuna) näkyy heti, varsinainen kuva (--bg) latautuu päälle */
  background-image: var(--bg), var(--lq, none);
  background-size: cover;
  background-position: center;
}
/* Parallax (site.js): kuva omalla tasollaan, joka liikkuu hitaammin kuin sivu. Ilman JS:ää kuva on .hero-taustana. */
.hero { isolation: isolate; overflow: hidden; }
.hero.parallax { background-image: var(--lq, none); }
.hero-bg {
  position: absolute;
  inset: -6% 0;                /* pieni ylimitoitus = vain ~10 % zoomaus */
  z-index: -1;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  will-change: transform;
}
/* Puhelimet: 2000 px versio riittää (3200 px olisi 2–3 × raskaampi hitaalla yhteydellä) */
@media (max-width: 900px) {
  .hero:not(.parallax) { background-image: var(--bg-m, var(--bg)), var(--lq, none); }
  .hero-bg { background-image: var(--bg-m, var(--bg)); }
}
.hero::before {                       /* tummennus: --dim 0–1 */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, var(--dim, 0));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 50px 0;
  color: var(--white);
  text-align: center;
  transform: rotate(-8deg);
}
@media (min-width: 500px) { .hero-content { padding: 50px; } }
.hero-content h1 { margin: 0 0 25px; color: inherit; }
.hero-content p {
  margin-top: -25px;
  font-family: var(--font-hand);
  font-size: 2rem;
}
@media (min-width: 500px) { .hero-content p { margin-top: -50px; } }

/* Ankkurilinkit heron otsikon alla (Music) */
html { scroll-behavior: smooth; }
.hero-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding: 0 0 20px;
}
@media (min-width: 500px) { .hero-links { padding: 0 50px 30px; } }
.hero-links a {
  position: relative;
  padding: 6px 0;
  color: var(--white);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
}
.hero-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width .3s ease;
}
.hero-links a:hover::after, .hero-links a:focus-visible::after { width: calc(100% - 3px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Musta otsikko vaalealla kuvalla (Contact) — kapealla näytöllä valkoinen */
@media (min-width: 1340px) { .hero-content.dark { color: var(--black); } }

/* Toinen hero samalla sivulla: h2 näyttää h1:ltä */
.hero-heading { font-family: var(--font-script); font-weight: 400; font-size: 4rem; line-height: 1.1; color: inherit; margin: 0 0 25px; }
@media (min-width: 768px) { .hero-heading { font-size: 6rem; } }
@media (min-width: 992px) { .hero-heading { font-size: 9rem; } }

/* Kirjain kerrallaan -animaatio (site.js, vain leveillä näytöillä) */
/* Piilossa kunnes animaatio alkaa — vain kun JS on käytössä (html.js), muuten teksti näkyy aina */
.js [data-letters]:not(.ready) { visibility: hidden; }
[data-letters] .word { display: inline-block; white-space: nowrap; }
[data-letters] .drop-in { display: inline-block; opacity: 0; transition: opacity .5s ease; }
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-30px); }
  to   { transform: translateY(0); }
}
.drop-in { animation: drop-in .8s ease forwards; }

/* ---------- Tekstityylit ---------- */
.subtitle { font-size: clamp(1.1rem, 1.1rem + ((1vw - .2rem) * .392), 1.75rem); font-weight: 500; line-height: 1.4; }
.lead { font-size: 1.1rem; font-weight: 500; }
.text-red  { color: var(--red); }
.text-neon { color: var(--neon); }
.center { text-align: center; }
.center .huge { left: 0; }   /* keskitetyssä osiossa iso otsikko ei työnny vasemmalle */

/* Iso otsikko, joka työntyy vasemmalle leveällä näytöllä */
.huge { font-size: 3rem; margin-bottom: 50px; }
@media (min-width: 1200px) {
  .huge { position: relative; left: -200px; font-size: 4rem; line-height: 1; }
}

/* ---------- Ilmestymisanimaatio ---------- */
[data-fade] { opacity: 0; transform: translateY(20px); transition: opacity 1s ease-out, transform .5s ease-out; }
[data-fade].visible { opacity: 1; transform: none; }

/* ---------- Etusivun kuvaruudukko ---------- */
.tiles { display: flex; flex-wrap: wrap; }
.tile {
  position: relative;
  flex: 1 1 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 50px;
  color: var(--white);
  text-decoration: none;
}
@media (min-width: 782px) {
  .tile.w60 { flex-basis: 60%; }
  .tile.w40 { flex-basis: 40%; }
}
.tile { overflow: hidden; }
.tile::before {                  /* alalaidan liukuväri otsikon taakse */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}
.tile h2 { z-index: 2; text-shadow: 0 0 30px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .35); }   /* pehmeä varjo vaalean kuvan päällä */
.tile img, .tile video {
  position: absolute;
  inset: -10% 0;                /* parallax-liikevara (site.js) */
  width: 100%; height: 120%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .4s ease-in-out, scale 1.2s cubic-bezier(.2, .7, .2, 1);   /* scale erillään parallaxin transformista */
}
.tile:hover img, .tile:focus-visible img,
.tile:hover video, .tile:focus-visible video { filter: none; scale: 1.05; }
.tile h2 {
  position: relative;
  margin-bottom: 20px;
  font-family: var(--font-script);
  font-size: 4.5rem;
  font-weight: 400;
  transform: rotate(-8deg);
}

/* ---------- Kuva/video-taustaiset osiot ---------- */
.cover {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.cover.full { min-height: 100vh; }
.cover > video,
.cover > .cover-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
@media (min-width: 992px) { .cover > .cover-bg { background-attachment: fixed; } }
.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay, rgba(0, 0, 0, .5));
}
.cover-inner { position: relative; z-index: 2; width: 100%; padding: 50px 0; }
@media (min-width: 992px) { .cover-inner { padding: 100px 0; } }
.cover h2 { color: var(--white); }
/* Teksti kuvan/videon vasempaan alalaitaan */
.cover-bottom { align-items: flex-end; }
/* Teksti kuvan/videon päällä vasemmassa alalaidassa, samassa linjassa kuin heroiden otsikot */
.cover-text { position: relative; z-index: 2; padding: 20px 20px 50px; }   /* sama sijainti kuin heroissa */
/* Alarivi on hero-contentin sisällä, joten se kallistuu otsikon mukana kuten Growth Mindsetissa */
.hero-content p.cover-line { margin-top: -20px; font-size: 1.4rem; }
@media (min-width: 1100px) { .cover-line { white-space: nowrap; } }

/* Isot luvut videon päällä (Web Development) */
.stats-cover .stats { padding-top: 80px; padding-bottom: 80px; }
.stats { display: grid; gap: 40px; width: 100%; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); padding-inline: 70px; } }
.stat strong { display: block; color: #ff3d94; font-weight: 200; font-size: 3.2rem; line-height: 1; letter-spacing: -1px; white-space: nowrap; }
@media (min-width: 900px) { .stat strong { font-size: clamp(3rem, 4.2vw, 4.5rem); } }
.stat span { display: block; margin-top: 14px; font-family: var(--font-hand); font-size: 1.5rem; opacity: .9; }
.stat:nth-child(2) { transition-delay: .2s; }
.stat:nth-child(3) { transition-delay: .4s; }

/* Asiakasnimet isolla */
.clients-section { padding-bottom: 100px; }
.clients-section .cta { margin: 50px 20px 0; }
.clients-section { text-align: center; }
.clients-section .hero-content { display: inline-block; padding: 0 20px 40px; transform-origin: center; }
.clients { margin: 0; padding: 0 20px; list-style: none; text-align: center; }
.clients li {
  font-weight: 200;
  font-size: clamp(1.6rem, 4.5vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: -.5px;
}
.clients li:nth-child(even) { color: var(--neon); }

/* Videolinkki taustavideon oikeassa alalaidassa */
.watch-link {
  position: absolute;
  right: 20px; bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  text-decoration: none;
}
@media (min-width: 500px) { .watch-link { right: 70px; bottom: 70px; } }
.watch-play {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  transition: background-color .3s, border-color .3s, transform .3s;
}
.watch-play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.watch-link:hover .watch-play, .watch-link:focus-visible .watch-play { background: var(--neon); border-color: var(--neon); transform: scale(1.08); }
.watch-text { display: grid; gap: 2px; }
.watch-title { font-family: var(--font-hand); font-size: 1.5rem; line-height: 1.2; }
.watch-label { font-size: .65rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; opacity: .75; }
@media (max-width: 767px) {           /* mobiilissa linkki otsikon alle, ei päällekkäin */
  .watch-link { position: relative; right: auto; bottom: auto; margin: 0 20px 40px; }
  .cover-bottom:has(.watch-link) { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
}

/* Albumit (Music): Spotify-soittimet rinnakkain mustalla */
.albums-section { text-align: center; }
.albums-section .hero-content { display: inline-block; padding: 20px 20px 40px; }
.albums { display: grid; gap: 40px; max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .albums { grid-template-columns: 1fr 1fr; } }
.albums .spotify { height: 452px; }
.albums .spotify:nth-child(2) { transition-delay: .2s; }

/* Akustiset coverit (Music): kansikuvat reunasta reunaan, klikkaus avaa videon */
.acoustic-section { text-align: center; padding-top: 0; }
.acoustic-section .hero-content { display: inline-block; padding: 20px 20px 40px; }
.covers { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .covers { grid-template-columns: repeat(4, 1fr); } }
.cover-tile {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--black);
  cursor: pointer;
}
.cover-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.9);
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .4s;
}
.cover-tile:hover img, .cover-tile:focus-visible img { transform: scale(1.05); filter: brightness(1); }
.cover-play {
  position: absolute;
  left: 50%; bottom: 8%;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin-left: -32px;
  border: 1.5px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  color: var(--white);
  transition: background-color .3s, border-color .3s, transform .3s;
}
.cover-play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.cover-tile:hover .cover-play, .cover-tile:focus-visible .cover-play { background: var(--neon); border-color: var(--neon); transform: scale(1.08); }
.cover-tile:nth-child(2) { transition-delay: .15s; }
.cover-tile:nth-child(3) { transition-delay: .3s; }
.cover-tile:nth-child(4) { transition-delay: .45s; }
.acoustic-section .cta { margin: 50px 20px 0; }

/* Keikkavaraukset (Music, sivun loppu) */
.dark-section.booking-section { text-align: center; padding-top: 0; }
.booking-section .hero-content { display: inline-block; padding: 60px 20px 20px; }
.dark-section.acoustic-section { padding-bottom: 20px; }
.booking-section .cta { margin: 20px 20px 0; }

/* Videosoitin (dialog) */
.video-box {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .95);
}
.video-box::backdrop { background: transparent; }
.video-box video { width: 100%; height: 100%; object-fit: contain; }
.video-box button {
  position: absolute;
  top: 15px; right: 25px;
  z-index: 2;
  border: 0;
  background: none;
  color: var(--white);
  font: 300 50px/1 var(--font-body);
  opacity: .8;
  cursor: pointer;
}
.video-box button:hover { opacity: 1; }

/* Toimintakehote */
.cta {
  display: inline-block;
  margin: 10px 0 0 50px;
  padding: 15px 40px;
  border: 3px solid var(--neon);
  border-radius: 30px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color .2s;
}
.cta:hover, .cta:focus-visible { background: var(--neon); }
@media (max-width: 499px) { .cta { margin-left: 0; } }

/* Tarkistuslista */
.checklist { list-style: none; padding: 0; line-height: 1.5; }
.checklist li { position: relative; padding: 5px 0 5px 40px; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  background: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z" fill="%23d10064"/></svg>') no-repeat center / contain;
}

/* ---------- Upotukset ---------- */
.video-embed { aspect-ratio: 16 / 9; }
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.spotify { width: 100%; height: 500px; border: 0; border-radius: 12px; }

/* ---------- Galleria ---------- */
/* Reunasta reunaan, pystykuvat, mustavalko → väri hoverissa */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); background: var(--black); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  filter: grayscale(100%) brightness(.85);
  transition: filter .5s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.gallery a:hover img, .gallery a:focus-visible img { filter: none; transform: scale(1.06); }
.gallery a[data-fade]:nth-child(2) { transition-delay: .15s; }
.gallery a[data-fade]:nth-child(3) { transition-delay: .3s; }
.gallery a[data-fade]:nth-child(4) { transition-delay: .45s; }

/* ---------- Valokuvavedokset (about-sivu) ---------- */
/* Tumma pöytä, teipatut kuvat vinossa, käsinkirjoitettu kuvateksti kuvan päällä keskellä */
.prints-section {
  background: radial-gradient(ellipse at 50% 0%, #1c1c1c, #050505 70%);
  color: var(--white);
  padding: 80px 20px 100px;
  overflow: hidden;
}
.prints-intro { max-width: var(--content); margin: 0 auto 50px; text-align: center; }
.prints-intro .hero-heading { margin-bottom: 10px; }
.prints-intro p { margin: 0; font-family: var(--font-hand); font-size: 1.5rem; opacity: .8; }
.prints { max-width: var(--wide); margin-inline: auto; columns: 2; column-gap: 18px; }
@media (min-width: 768px)  { .prints { columns: 3; column-gap: 34px; } }
@media (min-width: 1100px) { .prints { columns: 4; column-gap: 40px; } }
/* Kortti: vinossa, teipattu yläreunasta. Kuvan reunat käsin leikatun epäsymmetriset (clip-path).
   Kulmapoikkeamat --k1..--k7 ja teipin paikka vaihtelevat kortista toiseen. */
.prints a {
  --r: -2deg; --tx: 50%; --tr: -3deg;
  --k1: 3px; --k2: 0px; --k3: 0px; --k4: 5px; --k5: 2px; --k6: 0px; --k7: 6px;
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0 0 30px;
  padding-top: 12px;              /* tilaa teipille */
  color: var(--white);
  text-decoration: none;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .6));
  transform: rotate(var(--r));
  transition: opacity 1s ease-out, transform .5s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
}
@media (min-width: 768px) { .prints a { margin-bottom: 44px; } }
.prints a:nth-child(4n+2) { --r: 1.6deg;  --tx: 38%; --tr: 4deg;  --k1: 0px; --k2: 5px; --k3: 4px; --k4: 0px; --k5: 0px; --k6: 3px; --k7: 0px; }
.prints a:nth-child(4n+3) { --r: -.8deg;  --tx: 60%; --tr: -6deg; --k1: 5px; --k2: 2px; --k3: 0px; --k4: 3px; --k5: 6px; --k6: 0px; --k7: 3px; }
.prints a:nth-child(4n)   { --r: 2.2deg;  --tx: 45%; --tr: 2deg;  --k1: 0px; --k2: 0px; --k3: 6px; --k4: 2px; --k5: 3px; --k6: 6px; --k7: 0px; }
.prints a[data-fade] { opacity: 0; transform: rotate(var(--r)) translateY(30px); }
.prints a[data-fade].visible { opacity: 1; transform: rotate(var(--r)); }
/* Hover: kortti ja teippi pysyvät paikallaan; kuva zoomaa kehyksen sisällä, varjo syvenee, teksti nousee */
.prints a:hover, .prints a:focus-visible { filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .75)); z-index: 1; }
.prints .photo {
  position: relative;
  display: block;
  overflow: hidden;
  clip-path: polygon(var(--k1) var(--k2), calc(100% - var(--k3)) 0, 100% calc(100% - var(--k4)), var(--k5) 100%, 0 calc(100% - var(--k6)), 0 var(--k7));
}
.prints img { display: block; width: 100%; height: auto; filter: contrast(1.05) saturate(.85); transition: filter .5s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.prints a:hover img, .prints a:focus-visible img { filter: none; transform: scale(1.07); }
.prints a:hover .cap, .prints a:focus-visible .cap { padding-bottom: 18px; }
@media (min-width: 768px) { .prints a:hover .cap, .prints a:focus-visible .cap { padding-bottom: 22px; } }
.prints .tape {
  position: absolute; z-index: 2;
  top: 0; left: var(--tx);
  width: 34%; max-width: 92px; height: 26px;
  transform: translateX(-50%) rotate(var(--tr));
  background: linear-gradient(180deg, rgba(240, 232, 205, .7), rgba(222, 210, 175, .62));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'><path d='M3 2 L6 5 L2 9 L5 13 L1 17 L4 21 L2 26 L5 28 L95 29 L98 25 L94 21 L99 17 L95 13 L98 9 L94 5 L97 1 Z' fill='white'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'><path d='M3 2 L6 5 L2 9 L5 13 L1 17 L4 21 L2 26 L5 28 L95 29 L98 25 L94 21 L99 17 L95 13 L98 9 L94 5 L97 1 Z' fill='white'/></svg>") center / 100% 100% no-repeat;
}
.prints .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  font-family: var(--font-hand);
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 3px #000;
  transition: padding .6s cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { .prints .cap { font-size: 1.35rem; padding: 50px 16px 14px; } }

.lightbox figcaption {
  position: absolute; left: 0; right: 0; bottom: 20px;
  text-align: center;
  color: var(--white);
  font-family: var(--font-hand);
  font-size: 1.4rem;
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(0, 0, 0, .8);
  pointer-events: none;
}
.lightbox figcaption:empty { display: none; }

.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .92);
}
.lightbox::backdrop { background: transparent; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute;
  border: 0;
  background: none;
  color: var(--white);
  font: 300 60px/1 var(--font-body);
  opacity: .8;
  cursor: pointer;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 15px; right: 25px; font-size: 50px; }
.lightbox .lb-prev  { top: 50%; left: 15px;  transform: translateY(-50%); }
.lightbox .lb-next  { top: 50%; right: 15px; transform: translateY(-50%); }

/* ---------- Yhteydenottolomake ---------- */
.dark-section { background: var(--black); color: var(--white); padding: 50px 0; }
@media (min-width: 992px) { .dark-section { padding: 100px 0; } }
/* Lomakkeen käsialaotsikko, linjassa lomakkeen vasemman reunan kanssa */
.form-heading { max-width: 900px; margin: 60px auto 30px; text-align: center; }
.form-heading .hero-content { display: inline-block; padding: 0 0 20px; transform-origin: center; }
/* Editorial-tyyli: pelkkä alaviiva, pienet versaalinimet, iso kirjoitusteksti */
.contact-form { display: grid; gap: 40px; max-width: 900px; margin-inline: auto; }
@media (min-width: 768px) {
  .contact-form { grid-template-columns: 1fr 1fr 1fr; column-gap: 40px; }   /* nimi, sähköposti, puhelin samalla rivillä */
  .contact-form .full { grid-column: 1 / -1; }
}
.contact-form label {
  display: grid;
  gap: 4px;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  transition: color .2s;
}
.contact-form label:focus-within { color: var(--neon); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: 300 1.4rem var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--neon); }
/* Selaimen automaattitäyttö maalaa kentän vaaleaksi → pidetään musta tausta ja valkoinen teksti */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px var(--black) inset;
  caret-color: var(--white);
  transition: background-color 9999s;
}
.contact-form textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.contact-form .cf-turnstile:empty { display: none; }
.contact-form .hp { position: absolute; left: -9999px; }   /* roskapostiansa */
.contact-form button {
  justify-self: start;
  padding: 15px 40px;
  border: 3px solid var(--neon);
  border-radius: 30px;
  background: transparent;
  color: var(--white);
  font: 500 1rem var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s;
}
.contact-form button:hover, .contact-form button:focus-visible { background: var(--neon); }
.contact-form button:disabled { opacity: .5; cursor: wait; }
.form-status { min-height: 1.5em; margin: 0; grid-column: 1 / -1; }
.form-status.error { color: #ff6b6b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding: 20px; }
.copyright {
  margin: 20px 0 0;
  text-align: center;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.social { display: flex; justify-content: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  color: rgba(255, 255, 255, .8);
  transition: background-color .3s, border-color .3s, color .3s, transform .3s;
}
.social a:hover, .social a:focus-visible { background: var(--neon); border-color: var(--neon); color: var(--white); transform: scale(1.08); }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social svg.stroke .dot { fill: currentColor; stroke: none; }

/* Fokus näkyviin näppäimistökäyttäjille */
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-fade] { opacity: 1; transform: none; }
}
