/* Yläpalkki: infopalkki + lasimainen päävalikko, logo keskellä */
.kk-page { --nv-ease: cubic-bezier(0.16, 1, 0.3, 1); }
html { scroll-behavior: smooth; }
.nv-bar { position: sticky; top: 0; z-index: 90; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; height: 80px; padding: 0 40px; background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid transparent; transition: background-color 0.5s var(--nv-ease), color 0.5s; }
.nv-bar.is-open { background: rgba(255, 255, 255, 0); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent !important; }

.nv-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.nv-toggle { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.6); color: var(--ink); font: 600 14.5px/1 var(--font-body); cursor: pointer; transition: background-color 0.35s var(--nv-ease), border-color 0.35s, color 0.35s; }
.nv-toggle:hover { background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--on-inverse); }
.nv-lines { position: relative; width: 18px; height: 10px; }
.nv-lines span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.5s var(--nv-ease), top 0.5s var(--nv-ease); }
.nv-lines span:first-child { top: 0; }
.nv-lines span:last-child { top: 8px; }
.nv-toggle[aria-expanded="true"] .nv-lines span:first-child { top: 4px; transform: rotate(45deg); }
.nv-toggle[aria-expanded="true"] .nv-lines span:last-child { top: 4px; transform: rotate(-45deg); }
.nv-toggle[aria-expanded="true"] { background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--on-inverse); }

.nv-quick { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nv-link { position: relative; display: inline-flex; align-items: center; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nv-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--brand-red); transform: scaleX(0); transform-origin: left center; transition: transform 0.5s var(--nv-ease); }
.nv-link:hover::after, .nv-link.is-current::after { transform: scaleX(1); }
.nv-bar.is-open .nv-quick { opacity: 0; pointer-events: none; }
.nv-quick { transition: opacity 0.3s; }

.nv-brand { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--ink); }
.nv-logo { height: 38px; width: auto; display: block; transform-origin: center top; }
.nv-powered { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); line-height: 1; white-space: nowrap; }
.nv-powered strong { color: var(--ink); font-weight: 600; letter-spacing: 0.04em; }

.nv-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nv-phone { color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Koko näytön valikko */
.mn { position: fixed; inset: 0; z-index: 85; visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.7s; }
.mn.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.mn-bg { position: absolute; inset: 0; background: rgba(28, 26, 26, 0.38); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity 0.5s var(--nv-ease); }
.mn.is-open .mn-bg { opacity: 1; }
.mn-wrap { position: relative; height: 100%; box-sizing: border-box; padding: 128px 40px 40px; display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr); gap: 16px; pointer-events: none; }
.mn-panel { position: relative; pointer-events: auto; background: var(--surface); border-radius: var(--radius-lg); padding: 26px 44px 22px; display: flex; flex-direction: column; justify-content: flex-start; gap: 22px; overflow-y: auto; clip-path: inset(0 100% 0 0 round var(--radius-lg)); transition: clip-path 0.8s var(--nv-ease); }
.mn.is-open .mn-panel { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.mn-groups { display: flex; flex-direction: column; gap: 18px; }
.mn-label { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--action-text); }
.mn-label::before { content: ""; width: 7px; height: 7px; background: var(--brand-red); transform: rotate(45deg); }
.mn-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.mn-group li:not(.mn-sub) { grid-column: 1 / -1; }
.mn-g3 ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mn-g3 li:not(.mn-sub) { grid-column: auto; }
.mn-g3 .mn-link { font-size: 17px; padding: 4px 0; }
.mn-group li { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--nv-ease), transform 0.7s var(--nv-ease); transition-delay: 0s; }
.mn.is-open .mn-group li { opacity: 1; transform: none; transition-delay: calc(0.16s + var(--i) * 0.018s); }
.mn-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 3px 0; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.15; letter-spacing: -0.015em; transition: color 0.3s; }
.mn-link:hover, .mn-link.is-current { color: var(--brand-red); }
.mn-link.mn-sub { white-space: nowrap; padding: 3px 0; font-family: var(--font-body); font-weight: 500; font-size: 15.5px; letter-spacing: 0; color: var(--ink-muted); }
.mn-link.mn-sub:hover, .mn-link.mn-sub.is-current { color: var(--brand-red); }
li:not(.mn-sub) + li.mn-sub, li:not(.mn-sub) + li.mn-sub + li.mn-sub { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.mn-sub .mn-arrow { font-size: 14px; }
.mn-arrow { font-size: 20px; opacity: 0; transform: translateX(-10px); transition: opacity 0.3s, transform 0.5s var(--nv-ease); }
.mn-link:hover .mn-arrow { opacity: 1; transform: none; }
.mn-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-top: 22px; border-top: 1px solid var(--line); opacity: 0; transition: opacity 0.5s 0s; }
.mn.is-open .mn-foot { opacity: 1; transition-delay: 0.45s; }
.mn-contact { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.mn-contact:hover { color: var(--action-text); }
.mn-phone { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.mn-phone span { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--ink-muted); }

.mn-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-inverse); clip-path: inset(0 0 0 100% round var(--radius-lg)); transition: clip-path 0.9s var(--nv-ease) 0.05s; }
.mn.is-open .mn-media { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.mn-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.6s var(--nv-ease), transform 1.4s var(--nv-ease); }
.mn-img.mn-i0 { opacity: 1; }
.mn.is-open .mn-img { transform: none; }
.mn-wrap:has(.mn-g1:hover) .mn-i1, .mn-wrap:has(.mn-g2:hover) .mn-i2, .mn-wrap:has(.mn-g3:hover) .mn-i3 { opacity: 1; }
.mn-wrap:has(.mn-g1:hover) .mn-i0, .mn-wrap:has(.mn-g2:hover) .mn-i0, .mn-wrap:has(.mn-g3:hover) .mn-i0 { opacity: 0; }
.mn-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,26,26,0.6) 0%, rgba(28,26,26,0) 45%); }
.mn-media-cap { position: absolute; z-index: 1; left: 32px; bottom: 28px; right: 32px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -0.015em; }

/* Yhteystiedot-painike paneelin oikeassa yläkulmassa */
.mn-contact-btn { position: absolute; z-index: 2; top: 22px; right: 44px; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border: 0; border-radius: var(--radius-md); color: var(--on-action, #fff); text-decoration: none; font: 600 14.5px/1 var(--font-body); background: var(--action); opacity: 0; transition: opacity 0.5s 0s, background-color 0.35s var(--nv-ease), border-color 0.35s, color 0.35s; }
.mn.is-open .mn-contact-btn { opacity: 1; transition-delay: 0.3s, 0s, 0s, 0s; }
.mn-contact-btn span { transition: translate 0.4s var(--nv-ease); }
.mn-contact-btn:hover, .mn-contact-btn.is-current { background: var(--action-hover); color: var(--on-action, #fff); }
.mn-contact-btn:hover span { translate: 4px 0; }

/* Ajankohtaista-nosto valikkojen alla */
.mn-newsbox { padding-top: 18px; border-top: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--nv-ease), transform 0.7s var(--nv-ease); }
.mn.is-open .mn-newsbox { opacity: 1; transform: none; transition-delay: 0.4s; }
.mn-news { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 22px; align-items: center; color: var(--ink); text-decoration: none; }
.mn-news-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-md, 12px); overflow: hidden; background: var(--surface-muted, #eee); }
.mn-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--nv-ease); }
.mn-news:hover .mn-news-img img { transform: scale(1.05); }
.mn-news-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mn-news-meta { font-size: 12.5px; color: var(--ink-muted); }
.mn-news-title { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; transition: color 0.3s; }
.mn-news:hover .mn-news-title { color: var(--brand-red); }
.mn-news-text { font-size: 14.5px; line-height: 1.5; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mn-news-more { margin-top: 2px; font-weight: 600; font-size: 14.5px; color: var(--action-text); }
.mn-news-more span { display: inline-block; transition: translate 0.4s var(--nv-ease); }
.mn-news:hover .mn-news-more span { translate: 4px 0; }
/* Matalat näytöt: tiiviimpi valikko, alapalkin numero ja painike ovat jo yläpalkissa */
@media (max-height: 1000px) and (min-width: 901px) {
  .mn-panel { padding-top: 20px; gap: 14px; }
  .mn-contact-btn { top: 16px; }
  .mn-groups { gap: 10px; }
  .mn-link { padding: 1px 0; }
  .mn-link.mn-sub { padding: 1px 0; }
  li:not(.mn-sub) + li.mn-sub, li:not(.mn-sub) + li.mn-sub + li.mn-sub { margin-top: 6px; padding-top: 6px; }
  .mn-g3 .mn-link { padding: 2px 0; }
  .mn-foot { display: none; }
  .mn-newsbox { padding-top: 12px; }
  .mn-news { grid-template-columns: 132px minmax(0, 1fr); gap: 18px; }
  .mn-news-img { aspect-ratio: 1 / 1; }
  .mn-news-body { gap: 5px; }
  .mn-news-title { font-size: 18px; }
  .mn-news-text { -webkit-line-clamp: 2; font-size: 14px; }
}

/* Kelluva tarjouspyyntö: ilmestyy vierittäessä */
.nv-float { position: fixed; right: 28px; bottom: 28px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; padding: 16px 22px; border-radius: 999px; background: rgba(28, 26, 26, 0.82); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(28,26,26,0.25); transition: background-color 0.35s var(--nv-ease); }
.nv-float:hover { background: var(--brand-red); }
.nv-float span { transition: translate 0.4s var(--nv-ease); }
.nv-float:hover span { translate: 4px 0; }

/* Vierittäessä: palkki kutistuu, kuvat avautuvat */
@supports (animation-timeline: scroll()) {
  @keyframes nv-shrink { to { height: 64px; border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.9); } }
  @keyframes nv-logo-shrink { to { transform: scale(0.82); } }
  @keyframes nv-powered-hide { to { opacity: 0; height: 0; } }
  @keyframes nv-float-in { from { opacity: 0; transform: translateY(24px); pointer-events: none; } to { opacity: 1; transform: none; } }
  .nv-bar:not(.is-open) { animation: nv-shrink linear both; animation-timeline: scroll(root); animation-range: 0px 180px; }
  .nv-logo { animation: nv-logo-shrink linear both; animation-timeline: scroll(root); animation-range: 0px 180px; }
  .nv-powered { animation: nv-powered-hide linear both; animation-timeline: scroll(root); animation-range: 40px 150px; }
  .nv-float { animation: nv-float-in linear both; animation-timeline: scroll(root); animation-range: 500px 700px; }
  @keyframes kk-clip-reveal { from { clip-path: inset(12% 8% 12% 8% round 24px); } to { clip-path: inset(0 0 0 0 round 0px); } }
  .as-band img, .as-hero-img img, .tj-sticky img { animation: kk-clip-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
}

@media (max-width: 1240px) {
  .mn-wrap { grid-template-columns: minmax(0, 1fr); }
  .mn-media { display: none; }
}
@media (max-width: 1100px) {
  .nv-quick { display: none; }
  .nv-phone { display: none; }
}
@media (max-width: 900px) {
  .nv-bar { height: 64px; padding: 0 16px; gap: 10px; }
  .nv-logo { height: 28px; }
  .nv-powered { display: none; }
  .nv-toggle { padding: 0 12px; }
  .nv-toggle-label, .nv-hide-narrow { display: none !important; }
  .nv-cta { display: none; }
  .nv-phone { display: inline; font-size: 14px; }
  .nv-util { padding: 0 16px !important; }
  .mn-wrap { grid-template-columns: minmax(0, 1fr); padding: 112px 12px 12px; }
  .mn-media { display: none; }
  .mn-panel { padding: 28px 24px; }
  .mn-groups { gap: 26px; }
  .mn-link { font-size: 21px; }
  .nv-float { display: none; }
}
@media (max-width: 600px) {
  .mn-news { grid-template-columns: minmax(0, 1fr); }
  .mn-contact-btn { top: 18px; right: 20px; height: 38px; padding: 0 14px; }
  .mn-group ul, .mn-g3 ul { grid-template-columns: minmax(0, 1fr); }
  .mn-g3 li:not(.mn-sub) { grid-column: 1 / -1; }
  li:not(.mn-sub) + li.mn-sub + li.mn-sub { margin-top: 0; padding-top: 0; border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nv-bar, .nv-logo, .nv-powered, .nv-float, .as-band img, .as-hero-img img, .tj-sticky img { animation: none !important; }
  .mn-panel, .mn-media, .mn-bg, .mn-group li, .mn-newsbox, .mn-contact-btn, .mn-news-img img, .mn-img, .mn-foot, .nv-link::after, .nv-lines span { transition: none !important; }
}

/* SUJUVA-nosto: yhteinen komponentti kaikilla sivuilla */
.sj-band { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px 64px; align-items: center; padding: 56px; border-radius: var(--radius-lg); background: var(--surface-inverse); color: var(--on-inverse); }
.sj-band-text { display: flex; flex-direction: column; gap: 16px; }
.sj-band-text h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.sj-band-p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--on-inverse-muted); }
.sj-band-link { align-self: flex-start; margin-top: 4px; font-weight: 600; font-size: 16px; color: var(--on-inverse); text-decoration: none; }
.sj-band-link span { display: inline-block; transition: translate 0.4s var(--nv-ease); }
.sj-band-link:hover span { translate: 4px 0; }
.sj-band-models { display: flex; flex-direction: column; gap: 10px; }
.sj-model { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; row-gap: 4px; padding: 20px 24px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--on-inverse); text-decoration: none; transition: background-color 0.35s var(--nv-ease), border-color 0.35s; }
.sj-model:hover { background: rgba(255, 255, 255, 0.12); }
.sj-model.is-top { background: var(--action); border-color: var(--action); color: #fff; }
.sj-model.is-top:hover { background: var(--action-hover); border-color: var(--action-hover); }
.sj-model-tag { grid-column: 1; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-inverse-muted); }
.sj-model-name { grid-column: 1; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.15; }
.sj-model-text { grid-column: 1; font-size: 14.5px; line-height: 1.45; color: var(--on-inverse-muted); }
.sj-model.is-top .sj-model-tag, .sj-model.is-top .sj-model-text { color: rgba(255, 255, 255, 0.88); }
.sj-model-arrow { grid-column: 2; grid-row: 1 / 4; font-size: 20px; transition: translate 0.4s var(--nv-ease); }
.sj-model:hover .sj-model-arrow { translate: 4px 0; }
@media (max-width: 900px) {
  .sj-band { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; }
  .sj-band-text h2 { font-size: 32px; }
}
.sj-band .tj-kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.sj-band .tj-dia { display: inline-block; width: 9px; height: 9px; background: var(--brand-red); transform: rotate(45deg); margin-right: 12px; vertical-align: 1px; }

/* Yhteystiedot-välilehti oikeassa reunassa (kaikilla sivuilla) */
.ct { position: fixed; z-index: 80; right: 0; top: 50%; transform: translateY(calc(-50% + var(--ct-lag, 0px))); will-change: transform; }
.ct-tab { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 0 20px; width: 44px; box-sizing: border-box; border-radius: 12px 0 0 12px; background: var(--surface-inverse); color: var(--on-inverse); cursor: pointer; user-select: none; box-shadow: 0 8px 28px rgba(28, 26, 26, 0.22); transition: background-color 0.35s var(--nv-ease), width 0.45s var(--nv-ease), padding 0.45s var(--nv-ease); }
.ct-tab::-webkit-details-marker { display: none; }
.ct-tab::marker { content: ""; }
.ct-tab:hover { width: 50px; background: #2a2727; }
.ct[open] .ct-tab { background: var(--action); }
.ct-tab:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 3px; }
.ct-tab-dia { width: 7px; height: 7px; background: var(--brand-red); transform: rotate(45deg); transition: background-color 0.3s; }
.ct[open] .ct-tab-dia { background: #fff; }
.ct-tab-txt { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 13px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.ct-panel { position: absolute; right: 56px; top: 50%; width: 344px; max-width: calc(100vw - 72px); max-height: calc(100vh - 40px); overflow-y: auto; box-sizing: border-box; padding: 24px 24px 20px; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: 0 2px 6px rgba(28, 26, 26, 0.08), 0 24px 60px rgba(28, 26, 26, 0.22); transform: translateY(-50%); animation: ct-in 0.45s var(--nv-ease) both; }
@keyframes ct-in { from { opacity: 0; transform: translateY(-50%) translateX(14px) scale(0.98); } to { opacity: 1; transform: translateY(-50%); } }
.ct-kicker { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--action-text); }
.ct-kicker::before { content: ""; width: 7px; height: 7px; background: var(--brand-red); transform: rotate(45deg); }
.ct-title { margin: 8px 0 14px; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; }
.ct-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ct-person { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.ct-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; background: var(--surface-alt); }
.ct-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--ink-muted); }
.ct-who strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.ct-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; }
.ct-links a { color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.ct-links a:hover { color: var(--action-text); }
.ct-leak { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-inverse); color: var(--on-inverse); text-decoration: none; font-size: 13px; transition: background-color 0.3s; }
.ct-leak strong { font-family: var(--font-display); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-leak span { min-width: 0; }
.ct-leak:hover { background: var(--action); }
.ct-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 14px; font-size: 14px; }
.ct-mail { color: var(--ink-muted); text-decoration: none; }
.ct-mail:hover { color: var(--ink); }
.ct-all { color: var(--action-text); font-weight: 600; text-decoration: none; }
.ct-all span { display: inline-block; transition: translate 0.35s var(--nv-ease); }
.ct-all:hover span { translate: 4px 0; }
.mn.is-open ~ .ct, .nv-bar.is-open ~ .ct { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .ct { top: auto; bottom: 120px; transform: translateY(var(--ct-lag, 0px)); }
  .ct-tab { width: 36px; padding: 14px 0 16px; gap: 10px; }
  .ct-tab:hover { width: 36px; }
  .ct-tab-txt { font-size: 11.5px; }
  .ct-panel { top: auto; bottom: 0; right: 44px; transform: none; animation-name: ct-in-m; }
  @keyframes ct-in-m { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .ct-panel { animation: none; } .ct-tab { transition: none; } }

/* ---------- Brändätty kursori (vain hiiri/ohjauslevy, ei reduced motion) ----------
   Piirretään <html>-elementin ::before (rengas) ja ::after (timantti) -pseudoelementeillä,
   joten kursori ei ole sivun elementti eikä estä tekstien valintaa editorissa. */
html.kc-on, html.kc-on body, html.kc-on a, html.kc-on button, html.kc-on summary, html.kc-on label, html.kc-on [role="button"] { cursor: none; }
html.kc-on input, html.kc-on textarea, html.kc-on select, html.kc-on [contenteditable="true"] { cursor: auto; }
html.kc-on::before, html.kc-on::after { position: fixed; left: 0; top: 0; z-index: 2147483000; pointer-events: none; opacity: 0; will-change: transform; }
html.kc-on.kc-v::before, html.kc-on.kc-v::after { opacity: 1; }
/* Rengas: seuraa viiveellä, venyy liikkeen suuntaan */
html.kc-on::before { content: attr(data-kc-label); width: 38px; height: 38px; margin: -19px 0 0 -19px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid rgba(28,26,26,0.55); box-shadow: 0 0 0 1.5px rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; white-space: nowrap; color: transparent; font: 700 11px/1 var(--font-body, system-ui); letter-spacing: 0.22em; text-indent: 0.22em; text-transform: uppercase; transform: translate3d(var(--kc-rx, -100px), var(--kc-ry, -100px), 0) rotate(var(--kc-ang, 0deg)) scale(var(--kc-sx, 1), var(--kc-sy, 1)) scale(var(--kc-press, 1)); transition: opacity 0.25s ease, width 0.45s cubic-bezier(.77,0,.175,1), height 0.45s cubic-bezier(.77,0,.175,1), margin 0.45s cubic-bezier(.77,0,.175,1), background-color 0.35s, border-color 0.35s, box-shadow 0.35s, color 0.3s; }
/* Piste: punainen timantti, sama aihe kuin logossa ja nostoissa */
html.kc-on::after { content: ""; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--brand-red, #ed1f24); box-shadow: 0 0 0 1.5px rgba(255,255,255,0.9); transform: translate3d(var(--kc-x, -100px), var(--kc-y, -100px), 0) rotate(45deg) scale(var(--kc-ds, 1)); transition: opacity 0.25s ease; }
/* Linkit ja painikkeet: rengas kasvaa ja saa punaisen sävyn, piste pienenee */
html.kc-on.kc-link::before { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--brand-red, #ed1f24); background: rgba(237, 31, 36, 0.1); box-shadow: 0 0 0 1px rgba(255,255,255,0.55); }
html.kc-on.kc-link { --kc-ds: 0.55; }
/* Kortit ja kuvat: iso tumma rengas, jossa teksti */
html.kc-on.kc-card::before { width: 104px; height: 104px; margin: -52px 0 0 -52px; border-color: transparent; background: rgba(28, 26, 26, 0.88); box-shadow: 0 12px 34px rgba(28,26,26,0.28); color: #fff; }
html.kc-on.kc-card { --kc-ds: 0; }
/* Tekstikentät: oma kursori pois, selaimen tekstikursori näkyy */
html.kc-on.kc-text::before, html.kc-on.kc-text::after { opacity: 0; }
html.kc-on.kc-p { --kc-press: 0.82; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { html.kc-on::before, html.kc-on::after { display: none !important; } }
/* Some-linkit alatunnisteessa */
.kk-some { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.kk-some-a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); color: var(--on-inverse-muted); text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.kk-some-a:hover { background: var(--brand-red, #c8102e); border-color: var(--brand-red, #c8102e); color: #fff; transform: translateY(-2px); }
.kk-some-a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; color: #fff; }
@media (prefers-reduced-motion: reduce) { .kk-some-a, .kk-some-a:hover { transition: none; transform: none; } }
