/* Tilaa Mut Keikalle – tyylit
   Värit logon tummansinisestä + keikkakuvien magentasta. */
:root {
  --bg: #0b111b;
  --bg-2: #131d2b;       /* logon pohjaväri */
  --bg-3: #1b2940;
  --line: rgba(255, 255, 255, .1);
  --text: #eef1f6;
  --muted: #a9b3c4;
  --accent: #d946ef;
  --accent-2: #f0abfc;
  --on-accent: #0b111b;
  --radius: 16px;
  --max: 1180px;
  --head: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: clamp(72px, 11vw, 128px) 0; }
.section-alt { background: var(--bg-2); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 48px; }
.muted { color: var(--muted); }

/* Painikkeet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(217, 70, 239, .7); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: #fff; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header.scrolled, .site-header.solid { background: rgba(11, 17, 27, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; letter-spacing: .02em; }
.brand img { height: 34px; width: auto; }
.brand span { font-size: .95rem; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--text); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--accent-2); }
.nav .btn { min-height: 42px; padding: 10px 20px; font-size: .92rem; color: var(--on-accent); }
.nav-toggle { display: none; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; color: var(--text); cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .25s, opacity .25s; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--bg) url("/assets/img/hero-poster.jpg") center / cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,17,27,.55) 0%, rgba(11,17,27,.2) 35%, rgba(11,17,27,.92) 100%), radial-gradient(ellipse at 15% 90%, rgba(217,70,239,.25), transparent 55%); }
.hero-content { padding-bottom: clamp(64px, 12vh, 120px); padding-top: 120px; }
.hero h1 { max-width: 19ch; }
.hero .lead { color: #d6dbe5; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 36px 0 0; padding: 0; list-style: none; color: #d6dbe5; font-size: .95rem; }
.hero-pills li { display: flex; align-items: center; gap: 8px; }
.hero-pills svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; }

/* Palvelukortit */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 24px; border-radius: var(--radius); overflow: hidden; text-decoration: none; isolation: isolate; }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(11,17,27,.95) 100%); }
.service:hover img { transform: scale(1.05); }
.service h3 { margin-bottom: 6px; }
.service p { color: #cdd3de; font-size: .95rem; margin: 0 0 14px; }
.service .more { font-weight: 600; font-size: .9rem; color: var(--accent-2); display: inline-flex; align-items: center; gap: 6px; }
.service .more svg { width: 16px; height: 16px; transition: transform .2s; }
.service:hover .more svg { transform: translateX(4px); }
.service-av { outline: 1px solid rgba(217,70,239,.5); outline-offset: -1px; }
.tag { position: absolute; top: 18px; left: 18px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }

/* Artistit */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 500 .95rem var(--body); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: rgba(255,255,255,.35); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.artists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.artist { display: flex; flex-direction: column; background: var(--bg-3); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.artist:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.artist[hidden] { display: none; }
.artist-img { aspect-ratio: 4 / 3; overflow: hidden; }
.artist-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.artist:hover .artist-img img { transform: scale(1.05); }
.artist-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.artist-type { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
.artist-body h3 { margin-bottom: 8px; }
.artist-body p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.artist-body .more { margin-top: auto; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.artist-body .more svg { width: 16px; height: 16px; transition: transform .2s; }
.artist:hover .more svg { transform: translateX(4px); }

/* Live AV */
.av { position: relative; isolation: isolate; overflow: hidden; }
.av-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.av::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 20%, rgba(11,17,27,.7) 60%, rgba(11,17,27,.4)); }
.av-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.av-item { background: rgba(19, 29, 43, .85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(217, 70, 239, .15); color: var(--accent-2); margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }
.av-item p { color: var(--muted); margin: 0; }
.av-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 24px 28px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(217,70,239,.18), rgba(217,70,239,.05)); border: 1px solid rgba(217,70,239,.35); }
.av-note p { margin: 0; max-width: 680px; }

/* Miksi TMK */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.reasons { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.reasons li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.reasons svg { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.reasons strong { display: block; font-weight: 600; }
.reasons span { color: var(--muted); font-size: .97rem; }
.split-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* UKK */
.faq { max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; min-height: 48px; cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { color: var(--muted); margin: 0 0 22px; max-width: 680px; }

/* Yhteys */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list a { display: flex; align-items: center; gap: 14px; min-height: 48px; text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.contact-list a:hover { color: var(--accent-2); }
.contact-list .icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.contact-list .icon svg { width: 20px; height: 20px; }
.form { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .form legend { font-size: .92rem; font-weight: 500; }
.req { color: var(--accent-2); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: 400 1rem var(--body); color: var(--text); background: var(--bg-2); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; transition: border-color .2s; }
.form textarea { min-height: 120px; resize: vertical; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f0abfc' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(255,255,255,.35); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,70,239,.3); }
.form input[type="date"] { color-scheme: dark; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { padding: 0; margin-bottom: 10px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; cursor: pointer; font-size: .95rem; transition: border-color .2s, background .2s; }
.check:hover { border-color: rgba(255,255,255,.35); }
.check:has(input:checked) { border-color: var(--accent); background: rgba(217,70,239,.1); }
.check input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--accent); flex: none; }
.form .hint { font-size: .85rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
.hp { display: none; }

/* Artistisivu */
.page-hero { position: relative; min-height: 72svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,17,27,.45), rgba(11,17,27,.25) 40%, var(--bg) 100%); }
.page-hero .container { padding: 140px 0 56px; }
.breadcrumb { font-size: .9rem; color: #cdd3de; margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-2); }
.artist-page { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.artist-page .text p { font-size: 1.08rem; color: #d6dbe5; }
.facts { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.facts h2 { font-size: 1.2rem; }
.facts ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); }
.facts li svg { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.facts .btn { width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 56px; }
.gallery button { padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 100; place-items: center; padding: 20px; background: rgba(5, 8, 13, .94); border: 0; width: 100%; height: 100%; max-width: none; max-height: none; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(5, 8, 13, .94); }
.lightbox img { max-height: 88vh; width: auto; border-radius: 10px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* CTA-kaista */
.cta-band { text-align: center; }
.cta-band .lead { margin: 0 auto 28px; }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .95rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.copy { margin-top: 32px; color: var(--muted); font-size: .85rem; }

/* Kiitos */
.thanks { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px; }

/* Ilmestymisanimaatio */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsiivisuus */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .artists { grid-template-columns: repeat(2, 1fr); }
  .av-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px; background: var(--bg); transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
  .nav a { font-size: 1.35rem; }
  .nav .btn { font-size: 1.05rem; min-height: 52px; padding: 14px 28px; }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .nav-open { overflow: hidden; }
  /* backdrop-filter tekisi yläpalkista kiinteän valikon sijoituskehyksen */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split, .contact-grid, .artist-page { grid-template-columns: 1fr; }
  .split-img { aspect-ratio: 16 / 11; }
  .facts { position: static; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .services, .artists { grid-template-columns: 1fr; }
  .service { min-height: 300px; }
  .brand span { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* "Etkö löytänyt sopivaa" -kortti */
.artist-more { background: transparent; border: 1px dashed rgba(240, 171, 252, .45); }
.artist-more .artist-body { justify-content: center; }
.artist-more .more { margin-top: 8px; color: var(--accent-2); }
