/* Smashly – sivuston tyylit */

@font-face { font-family: 'Changa One'; src: url('/assets/fonts/changa-one-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Changa One'; src: url('/assets/fonts/changa-one-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --teal-950: #011a20;
  --teal-900: #02323c;
  --teal-850: #043a45;
  --teal-800: #06434f;
  --teal-700: #0a5563;
  --teal-500: #0f8796;
  --lime: #c4f740;
  --lime-2: #dcff7a;
  --lime-glow: rgba(196, 247, 64, 0.45);
  --paper: #f4f7ec;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --display: 'Changa One', Impact, 'Arial Narrow', sans-serif;
  --body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 28px;
  --radius-sm: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 76px;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.65;
  color: var(--white);
  background: var(--teal-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::after { /* hienovarainen rae */
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--teal-900); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

[hidden]:not(.mobile-menu) { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--lime); color: var(--teal-900); font-weight: 600; transform: translateY(-160%); transition: transform 0.2s; }
.skip-link:focus { transform: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.tiny { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* Tennispallo-merkki */
.tball {
  display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.55) 0 12%, transparent 34%),
    radial-gradient(circle at 50% 50%, var(--lime) 0 62%, #a8d82a 100%);
  position: relative; vertical-align: 0.02em;
  box-shadow: 0 0 0.6em var(--lime-glow);
}
.tball::before, .tball::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 0.07em solid rgba(255, 255, 255, 0.85); clip-path: inset(0 52% 0 0);
  transform: translateX(-38%) scale(0.96);
}
.tball::after { clip-path: inset(0 0 0 52%); transform: translateX(38%) scale(0.96); }

/* Typografia */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lime); margin: 0 0 1.1rem;
}
.display-hero, .display-1, .display-2 { font-family: var(--display); line-height: 0.92; letter-spacing: -0.01em; text-wrap: balance; }
.display-hero { font-size: clamp(2.8rem, 7.2vw, 6.6rem); }
.display-1 { font-size: clamp(2.6rem, 6vw, 5.4rem); margin-bottom: 0.4em; }
.display-2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); margin-bottom: 0.45em; }
.lead-text { font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.3rem); color: var(--white); }
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split { max-width: none; display: grid; gap: 24px 64px; grid-template-columns: 1.2fr 1fr; align-items: end; }
.section-head__lead { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* Painikkeet */
.btn {
  --bg: transparent; --fg: var(--white); --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.85em 1.5em; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn--lime { --bg: var(--lime); --fg: var(--teal-900); box-shadow: 0 10px 30px -10px var(--lime-glow); }
.btn--lime:hover { box-shadow: 0 16px 40px -8px var(--lime-glow); --bg: var(--lime-2); }
.btn--lime::after { /* kiiltoviiva */
  content: ''; position: absolute; inset: -2px; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn--lime:hover::after { transform: translateX(120%); }
.btn--ghost { --bd: var(--line); --bg: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { --bd: var(--lime); --fg: var(--lime); }
.btn--glass { --bd: rgba(255, 255, 255, 0.28); --bg: rgba(2, 50, 60, 0.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { --bd: var(--lime); }
.btn--glass svg { color: var(--lime); }
.btn--outline { --bd: var(--lime); --fg: var(--lime); }
.btn--outline:hover { --bg: var(--lime); --fg: var(--teal-900); }
.btn--sm { padding: 0.6em 1.1em; font-size: 0.9rem; }
.btn--lg { padding: 1.05em 1.8em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: transparent; display: grid; place-items: center; transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { border-color: var(--lime); color: var(--lime); }
.round-btn:active { transform: scale(0.92); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.45em; color: var(--lime); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.link-arrow svg { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Ylätunniste */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color 0.4s, backdrop-filter 0.4s, transform 0.45s var(--ease), box-shadow 0.4s;
}
.site-header.is-scrolled { background: rgba(2, 40, 48, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; transition: transform 0.4s var(--ease-bounce); }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; white-space: nowrap; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px; font-weight: 500; font-size: 0.95rem; text-decoration: none; border-radius: 999px;
  transition: color 0.2s;
}
.main-nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--lime); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.main-nav a:hover, .main-nav a[aria-current='page'] { color: var(--lime); }
.main-nav a:hover::after, .main-nav a[aria-current='page']::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-link { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-decoration: none; padding: 8px 10px; border-radius: 999px; border: 1.5px solid var(--line); transition: border-color 0.2s, color 0.2s; }
.lang-link:hover { border-color: var(--lime); color: var(--lime); }
.header-cta svg { width: 1em; height: 1em; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: rgba(2, 50, 60, 0.4); position: relative; }
.menu-toggle__bar { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.menu-toggle__bar:nth-of-type(2) { top: 18px; }
.menu-toggle__bar:nth-of-type(3) { top: 26px; }
.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-of-type(2) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-of-type(3) { top: 22px; transform: rotate(-45deg); }
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  .header-cta span { display: none; }
  .header-cta { padding: 0.7em; }
  .lang-link { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: radial-gradient(120% 80% at 100% 0%, var(--teal-700), var(--teal-950));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 44px) 38px); transition: clip-path 0.7s var(--ease);
}
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a { display: block; font-family: var(--display); font-size: clamp(2.2rem, 10vw, 3.6rem); line-height: 1.15; text-decoration: none; transform: translateY(105%); transition: transform 0.6s var(--ease), color 0.2s; transition-delay: calc(var(--i) * 60ms + 150ms); }
.mobile-menu.is-open a { transform: none; }
.mobile-menu a:hover { color: var(--lime); }
.mobile-menu__social { display: flex; gap: 12px; }

/* Vierityspallo */
.scroll-ball { position: fixed; right: 14px; top: 50%; height: 34vh; width: 2px; transform: translateY(-50%); background: var(--line); border-radius: 2px; z-index: 40; pointer-events: none; }
.scroll-ball span { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime-glow); transform: translateY(calc(var(--p, 0) * 34vh)); }
@media (max-width: 760px) { .scroll-ball { display: none; } }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 clamp(80px, 12vh, 140px); }
.hero__media { position: absolute; inset: -6% 0 0; z-index: -3; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: kenburns 22s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.18); filter: saturate(0.6) brightness(0.7); } to { transform: scale(1.02); filter: none; } }
.hero__shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(1, 26, 32, 0.55) 0%, rgba(1, 26, 32, 0) 30%),
  linear-gradient(90deg, rgba(1, 26, 32, 0.92) 0%, rgba(2, 50, 60, 0.6) 45%, rgba(2, 50, 60, 0.05) 100%),
  linear-gradient(0deg, var(--teal-900) 0%, rgba(2, 50, 60, 0) 35%); }
.hero__court { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.35; }
.hero__court path { fill: none; stroke: var(--lime); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hero__trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero__content { position: relative; z-index: 3; }
.hero__eyebrow { color: var(--lime); }
.hero__title {
  font-family: var(--display); font-size: clamp(4.2rem, 15vw, 14.5rem); line-height: 0.8; letter-spacing: -0.02em;
  text-transform: uppercase; margin: 0 0 0.12em; display: flex; flex-direction: column;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line:last-child { color: var(--lime); display: flex; align-items: flex-end; text-shadow: 0 0 60px rgba(196, 247, 64, 0.25); }
.hero__dot { display: inline-block; width: 0.2em; height: 0.2em; border-radius: 50%; margin: 0 0 0.1em 0.06em; background: var(--lime); box-shadow: 0 0 30px var(--lime-glow); opacity: 0; }
.hero__dot.is-hit { opacity: 1; animation: squash 0.6s var(--ease-bounce); }
@keyframes squash { 0% { transform: scale(1.6, 0.5); } 40% { transform: scale(0.85, 1.2); } 70% { transform: scale(1.05, 0.95); } 100% { transform: none; } }
.hero__lead { max-width: 40ch; font-size: clamp(1.1rem, 0.9vw + 0.9rem, 1.45rem); color: rgba(255, 255, 255, 0.9); margin-bottom: 1.6em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__ball { position: absolute; left: 0; top: 0; z-index: 4; width: 44px; height: 44px; margin: -22px 0 0 -22px; pointer-events: none; opacity: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 8%, var(--lime) 30%, #9ccf1e 100%); box-shadow: 0 0 40px var(--lime-glow); }
.hero__ball::before, .hero__ball::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.85); clip-path: inset(0 55% 0 0); transform: translateX(-40%); }
.hero__ball::after { clip-path: inset(0 0 0 55%); transform: translateX(40%); }
.ripple { position: absolute; z-index: 3; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 3px solid var(--lime); pointer-events: none; animation: ripple 0.9s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(9); opacity: 0; border-width: 1px; } }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 32px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--muted); writing-mode: vertical-rl; }
.hero__scroll-line { width: 2px; height: 64px; background: linear-gradient(var(--lime), transparent); background-size: 100% 200%; animation: scrollline 2s infinite; }
@keyframes scrollline { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero__media img { object-position: 70% 40%; }
  .hero__shade { background: linear-gradient(0deg, var(--teal-900) 8%, rgba(2, 50, 60, 0.75) 55%, rgba(1, 26, 32, 0.35) 100%); }
  .hero__scroll { display: none; }
}

/* Kirjainten nousu */
[data-split] .char, [data-split-words] .word { display: inline-block; will-change: transform; }
[data-split] .char { transform: translateY(105%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--ci) * 45ms + var(--base, 200ms)); }
@keyframes rise { to { transform: none; } }
[data-split-words] .word { transform: translateY(0.6em); opacity: 0; transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); transition-delay: calc(var(--wi) * 60ms); }
[data-split-words].is-visible .word, .is-visible [data-split-words] .word { transform: none; opacity: 1; }
.hero__lead, .hero__ctas, .hero__eyebrow, .page-hero .hero__lead, .page-hero .btn { animation: fadeup 1s var(--ease) both; }
.hero__eyebrow { animation-delay: 0.1s; }
.hero__lead { animation-delay: 0.75s; }
.hero__ctas, .page-hero .btn { animation-delay: 0.95s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Ilmestyminen vieritettäessä */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--clip { opacity: 1; transform: none; clip-path: inset(18% 8% 18% 8% round var(--radius)); transition: clip-path 1.3s var(--ease); }
.reveal--clip.is-visible { clip-path: inset(0 0 0 0 round var(--radius)); }
.draw { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 2.2s var(--ease); }
.is-drawn .draw, .draw.is-drawn { stroke-dashoffset: 0; }

/* Nauhat */
.marquee-wrap { position: relative; height: clamp(150px, 18vw, 230px); overflow: hidden; margin: -40px 0; z-index: 5; pointer-events: none; }
.marquee { position: absolute; left: -5%; right: -5%; top: 50%; display: flex; overflow: hidden; padding: 0.35em 0; font-family: var(--display); font-size: clamp(2rem, 5vw, 4.2rem); text-transform: uppercase; line-height: 1; white-space: nowrap; }
.marquee__track { display: flex; align-items: center; gap: 0.5em; padding-right: 0.5em; animation: marquee 38s linear infinite; }
.marquee__track .tball { width: 0.5em; height: 0.5em; }
.marquee--lime { background: var(--lime); color: var(--teal-900); transform: translateY(-50%) rotate(-3deg); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5); z-index: 2; }
.marquee--lime .tball { background: var(--teal-900); box-shadow: none; }
.marquee--lime .tball::before, .marquee--lime .tball::after { border-color: var(--lime); }
.marquee--outline { color: transparent; -webkit-text-stroke: 1.5px rgba(196, 247, 64, 0.55); transform: translateY(-50%) rotate(2.5deg); background: var(--teal-950); }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 46s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Mikä on Smashly */
.about { background: radial-gradient(70% 60% at 100% 0%, rgba(15, 135, 150, 0.25), transparent 70%); }
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__text p { color: var(--muted); max-width: 56ch; }
.about__text .lead-text { color: var(--white); }
.about__sub { font-family: var(--display); font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; color: var(--lime) !important; margin: 1.2em 0 0.5em; }
.about__text .btn { margin-top: 1rem; }
.about__media { position: relative; }
.video-facade { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10.5; cursor: pointer; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); background: var(--teal-800); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.9); }
.video-facade:hover img { transform: scale(1.05); filter: saturate(1.1); }
.video-facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1, 26, 32, 0.75), transparent 50%); }
.video-facade__play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--teal-900); box-shadow: 0 0 0 0 var(--lime-glow); animation: pulse 2.2s infinite; transition: transform 0.4s var(--ease-bounce); }
.video-facade__play svg { width: 38px; height: 38px; margin-left: 5px; }
.video-facade:hover .video-facade__play { transform: scale(1.1); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--lime-glow); } 70% { box-shadow: 0 0 0 28px rgba(196, 247, 64, 0); } 100% { box-shadow: 0 0 0 0 rgba(196, 247, 64, 0); } }
.video-facade__label { position: absolute; left: 24px; bottom: 20px; z-index: 2; font-family: var(--display); font-size: 1.4rem; }
.about__note { margin: 14px 4px 0; font-size: 0.8rem; color: var(--muted); }
.about__lines { position: absolute; width: 46%; left: -9%; top: -12%; z-index: -1; opacity: 0.5; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .about__lines { display: none; } }

/* Ominaisuudet */
.features { background: var(--teal-950); overflow: hidden; }
.features::before { content: ''; position: absolute; width: 60vw; height: 60vw; left: -20vw; top: -20vw; border-radius: 50%; background: radial-gradient(circle, rgba(196, 247, 64, 0.08), transparent 65%); }
.bento { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; }
.bento__card {
  position: relative; border-radius: var(--radius); padding: 30px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line);
  min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.5s var(--ease), border-color 0.4s, opacity 1s var(--ease);
}
.bento__card:hover { border-color: rgba(196, 247, 64, 0.5); transform: translateY(-6px); }
.bento__card h3 { font-family: var(--display); font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.05; margin-bottom: 0.4em; text-wrap: balance; }
.bento__icon + h3 { margin-top: 24px; }
.bento__card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.bento__card--hero { grid-column: span 2; grid-row: span 2; min-height: 520px; padding: 40px; }
.bento__card--hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.bento__card--hero:hover img { transform: scale(1.06); }
.bento__card--hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(1, 26, 32, 0.95) 5%, rgba(1, 26, 32, 0.1) 65%); }
.bento__card--hero h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); color: var(--lime); }
.bento__card--hero p { color: var(--white); font-size: 1.1rem; max-width: 36ch; }
.bento__icon { position: relative; flex: none; margin-bottom: auto; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(196, 247, 64, 0.12); color: var(--lime); transition: transform 0.5s var(--ease-bounce), background-color 0.3s, color 0.3s; }
.bento__icon svg { width: 28px; height: 28px; }
.bento__card:hover .bento__icon { transform: rotate(-8deg) scale(1.08); background: var(--lime); color: var(--teal-900); }
.spotlight::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(196, 247, 64, 0.14), transparent 60%); pointer-events: none; }
.spotlight:hover::after { opacity: 1; }
.bento__card--hero.spotlight::after { z-index: 0; }
@media (max-width: 1020px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento__card--hero { grid-column: span 2; grid-row: auto; min-height: 420px; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento__card--hero { grid-column: auto; } .bento__card { min-height: 220px; } }

/* Lyönnit */
.strokes { position: relative; height: calc(var(--count) * 90vh + 30vh); background: var(--teal-900); }
.strokes__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.strokes__grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.strokes__list { display: flex; flex-direction: column; gap: 6px; counter-reset: s; }
.strokes__item { position: relative; cursor: default; }
.strokes__word {
  display: block; font-family: var(--display); font-size: clamp(3.2rem, 9vw, 8.4rem); line-height: 0.95; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35); transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s, transform 0.6s var(--ease);
  transform-origin: left center;
}
.strokes__item.is-active .strokes__word { color: var(--lime); -webkit-text-stroke-color: var(--lime); transform: translateX(14px); }
.strokes__text { max-height: 0; overflow: hidden; opacity: 0; margin: 0; color: var(--muted); max-width: 40ch; transition: max-height 0.6s var(--ease), opacity 0.5s, margin 0.6s var(--ease); padding-left: 16px; }
.strokes__item.is-active .strokes__text { max-height: 6em; opacity: 1; margin: 0.4em 0 0.8em; }
.strokes__progress { margin-top: 28px; height: 3px; width: min(360px, 80%); background: var(--line); border-radius: 3px; overflow: hidden; }
.strokes__progress span { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.strokes__media { position: relative; aspect-ratio: 4 / 5; max-height: 76vh; justify-self: end; width: 100%; }
.strokes__img { position: absolute; inset: 0; margin: 0; border-radius: var(--radius); overflow: hidden; clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1s var(--ease); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8); }
.strokes__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 1.4s var(--ease); }
.strokes__img.is-active { clip-path: inset(0 0 0 0 round var(--radius)); z-index: 2; }
.strokes__img.is-active img { transform: scale(1); }
.strokes__img.was-active { clip-path: inset(0 0 0 0 round var(--radius)); z-index: 1; }
.strokes__counter { position: absolute; right: 20px; bottom: 18px; z-index: 3; font-family: var(--display); font-size: 1.1rem; padding: 6px 14px; border-radius: 999px; background: rgba(2, 50, 60, 0.6); backdrop-filter: blur(10px); }
.strokes__counter span { color: var(--lime); }
@media (max-width: 860px) {
  .strokes__grid { grid-template-columns: 1fr; gap: 20px; }
  .strokes__media { order: -1; aspect-ratio: 4 / 3.4; max-height: 44svh; justify-self: stretch; }
  .strokes__word { font-size: clamp(2.6rem, 13vw, 4rem); }
  .strokes__progress { display: none; }
  .strokes .eyebrow { display: none; }
}

/* Paikanna */
.locator-section { background: linear-gradient(180deg, var(--teal-900), var(--teal-850)); }
.locator-section--full { padding-top: clamp(56px, 7vw, 96px); }
.locator { display: grid; grid-template-columns: minmax(320px, 0.85fr) 1.15fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--teal-950); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.8); min-height: 600px; }
.locator__panel { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.locator__search { display: grid; gap: 12px; }
.locator__search > .btn { justify-self: start; }
.locator__form { display: flex; gap: 8px; }
.locator__form input { flex: 1; min-width: 0; padding: 0.85em 1.2em; border-radius: 999px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--white); font: inherit; font-size: 0.95rem; transition: border-color 0.2s; }
.locator__form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.locator__form input:focus { outline: none; border-color: var(--lime); }
.locator__status { min-height: 1.4em; margin: 0; font-size: 0.88rem; color: var(--muted); }
.locator__result { border-radius: var(--radius-sm); padding: 20px 22px; background: var(--lime); color: var(--teal-900); animation: pop 0.6s var(--ease-bounce); }
.locator__result .eyebrow { color: var(--teal-900); margin-bottom: 0.4em; }
.locator__result-name { font-family: var(--display); font-size: 1.8rem; line-height: 1.05; }
.locator__result-km { font-family: var(--display); font-size: 3rem; line-height: 1; }
.locator__result-km small { font-size: 1.1rem; margin-left: 4px; }
.locator__result-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.locator__result a { color: var(--teal-900); font-weight: 600; }
.locator__result p { margin: 0.6em 0 0; font-size: 0.92rem; }
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.locator__clubs { font-family: var(--body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.locator__clubs span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--teal-900); letter-spacing: 0; font-size: 0.8rem; }
.locator__list { display: grid; gap: 10px; }
.club { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--ease); }
.club:hover, .club.is-active { border-color: rgba(196, 247, 64, 0.6); background: rgba(196, 247, 64, 0.06); }
.club.is-nearest { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime) inset; }
.club__pin { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(196, 247, 64, 0.12); color: var(--lime); }
.club__pin svg { width: 22px; height: 22px; }
.club__name { font-family: var(--display); font-size: 1.25rem; line-height: 1.1; }
.club__addr { margin: 0; font-size: 0.85rem; color: var(--muted); }
.club__dist { font-family: var(--display); color: var(--lime); font-size: 1.2rem; white-space: nowrap; }
.club__actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.club__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.club__btn svg { width: 14px; height: 14px; }
.club__btn:hover { border-color: var(--lime); color: var(--lime); }
.club__btn--lime { background: var(--lime); border-color: var(--lime); color: var(--teal-900); }
.club__btn--lime:hover { background: var(--lime-2); color: var(--teal-900); }
.locator__map { position: relative; min-height: 420px; background: #0b2a30; }
.locator__map-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; }
.locator__map-ph .tball { animation: bounce 0.9s infinite cubic-bezier(0.5, 0, 0.5, 1) alternate; }
@keyframes bounce { from { transform: translateY(-30px); } to { transform: translateY(10px) scale(1.1, 0.9); } }
.locator__map .leaflet-container { position: absolute; inset: 0; background: #0b2a30; font-family: var(--body); }
.locator__map .leaflet-tile-pane { filter: grayscale(1) invert(1) sepia(0.35) hue-rotate(140deg) saturate(2.2) brightness(0.62) contrast(1.15); }
.locator__map .leaflet-control-attribution { background: rgba(1, 26, 32, 0.75); color: rgba(255, 255, 255, 0.7); font-size: 10px; }
.locator__map .leaflet-control-attribution a { color: var(--lime); }
.locator__map .leaflet-bar a { background: var(--teal-900); color: var(--white); border-color: var(--line); }
.locator__map .leaflet-bar a:hover { background: var(--teal-700); }
.locator__map .leaflet-popup-content-wrapper, .locator__map .leaflet-popup-tip { background: var(--teal-900); color: var(--white); border-radius: 14px; }
.locator__map .leaflet-popup-content { margin: 14px 18px; font-size: 0.9rem; }
.locator__map .leaflet-popup-content strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; display: block; color: var(--lime); }
.map-pin { position: relative; }
.map-pin__ball { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 8%, var(--lime) 32%, #9ccf1e 100%); box-shadow: 0 0 0 4px rgba(2, 50, 60, 0.8), 0 0 24px var(--lime-glow); animation: pinDrop 0.8s var(--ease-bounce) both; animation-delay: var(--d, 0ms); }
.map-pin__pulse { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid var(--lime); animation: mapPulse 2.4s infinite; }
.map-pin.is-active .map-pin__ball { transform: scale(1.35); }
@keyframes pinDrop { from { transform: translateY(-60px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mapPulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
.me-pin { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.3), 0 0 0 12px rgba(255, 255, 255, 0.12); }
@media (max-width: 900px) { .locator { grid-template-columns: 1fr; } .locator__map { order: -1; min-height: 340px; } }

/* Toive */
.wish { background: var(--paper); color: var(--teal-900); }
.wish .eyebrow { color: var(--teal-700); }
.wish .lead-text { color: var(--teal-900); }
.wish__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.wish__map { max-width: 300px; margin-top: 20px; }
.fi-map { width: 100%; height: auto; overflow: visible; }
.fi-map__shape { fill: rgba(2, 50, 60, 0.06); stroke: var(--teal-900); stroke-width: 1.6; }
.fi-map__club { fill: var(--lime); stroke: var(--teal-900); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pinDrop 0.8s var(--ease-bounce) both; animation-delay: var(--d); }
.fi-map__wish { fill: none; stroke: var(--teal-700); stroke-width: 1.8; stroke-dasharray: 3 3; transform-box: fill-box; transform-origin: center; animation: wishPulse 2.6s infinite; animation-delay: var(--d); }
@keyframes wishPulse { 0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.8); opacity: 1; } }
@media (max-width: 860px) { .wish__grid { grid-template-columns: 1fr; } .wish__map { max-width: 220px; } }

/* Some */
.social { background: var(--teal-900); overflow: hidden; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.3s var(--ease); }
.pill svg { width: 18px; height: 18px; --icon-cut: var(--teal-900); }
.pill:hover { background: var(--lime); border-color: var(--lime); color: var(--teal-900); transform: translateY(-3px); --icon-cut: var(--lime); }
.pill:hover svg { --icon-cut: var(--lime); }
.social__block { margin-bottom: 56px; }
.social__block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.social__block-head h3 { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.7rem; }
.social__block-head h3 svg { width: 28px; height: 28px; color: var(--lime); --icon-cut: var(--teal-900); }
.carousel-nav { display: flex; align-items: center; gap: 10px; }
.carousel-nav .link-arrow { margin-left: 8px; }
.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 21vw, 250px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.shorts::-webkit-scrollbar { display: none; }
.short { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; scroll-snap-align: start; background: var(--teal-800); border: 1px solid var(--line); cursor: pointer; padding: 0; text-align: left; transform: translateY(30px); opacity: 0; animation: cardIn 0.8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
.short--skeleton { animation: shimmer 1.4s infinite; opacity: 1; transform: none; background: linear-gradient(100deg, var(--teal-800) 30%, var(--teal-700) 50%, var(--teal-800) 70%); background-size: 300% 100%; cursor: default; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes cardIn { to { transform: none; opacity: 1; } }
.short img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); transition: transform 0.8s var(--ease); }
.short:hover img { transform: scale(1.44); }
.short::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1, 26, 32, 0.95) 0%, rgba(1, 26, 32, 0) 55%); }
.short__play { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(2, 50, 60, 0.6); backdrop-filter: blur(8px); color: var(--lime); transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease-bounce); }
.short__play svg { width: 18px; height: 18px; margin-left: 3px; }
.short:hover .short__play { background: var(--lime); color: var(--teal-900); transform: scale(1.12); }
.short__title { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; font-size: 0.86rem; line-height: 1.35; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.short__date { display: block; font-size: 0.72rem; color: var(--lime); margin-bottom: 4px; letter-spacing: 0.05em; }
.social__split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.social__split .social__block { margin: 0; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ig-grid a { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; display: block; background: var(--teal-800); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.ig-grid a:hover img { transform: scale(1.08); }
.ig-grid a::after { content: ''; position: absolute; inset: 0; background: rgba(196, 247, 64, 0); transition: background-color 0.3s; }
.ig-grid a:hover::after { background: rgba(196, 247, 64, 0.15); }
.ig-fallback { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-decoration: none; min-height: 380px; }
.ig-fallback img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; transition: transform 0.8s var(--ease); }
.ig-fallback__b { margin-top: 40px; height: calc(100% - 40px) !important; }
.ig-fallback:hover img { transform: translateY(-6px); }
.ig-fallback__text { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 20px; border-radius: 18px; background: rgba(2, 40, 48, 0.82); backdrop-filter: blur(12px); display: grid; gap: 8px; justify-items: start; font-size: 0.92rem; color: var(--muted); }
.ig-fallback__text strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--white); }
.ig-fallback__text .btn { margin-top: 6px; }
.tt-card { border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; min-height: 380px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(37, 244, 238, 0.08), rgba(254, 44, 85, 0.08)); }
.tt-card p { color: var(--muted); margin: 0; }
.tt-card__phone { position: absolute; top: 26px; right: 26px; width: 90px; height: 160px; border-radius: 18px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 2.4rem; transform: rotate(8deg); }
.tt-card__phone .tball { position: absolute; font-size: 2.4rem; left: -18px; bottom: 18px; animation: bounce 0.8s infinite cubic-bezier(0.5, 0, 0.5, 1) alternate; }
.tt-card__note { color: var(--lime); }
.tt-embed { width: 100%; min-height: 380px; }
.tt-embed iframe, .tt-embed blockquote { max-width: 100% !important; }
@media (max-width: 900px) { .social__split { grid-template-columns: 1fr; } }

/* B2B */
.b2b { padding-top: 0; }
.b2b__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.b2b-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 520px; text-decoration: none; isolation: isolate; }
.b2b-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.b2b-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(1, 26, 32, 0.95) 10%, rgba(1, 26, 32, 0.2) 70%); transition: background-color 0.5s; }
.b2b-card:hover img { transform: scale(1.07); }
.b2b-card__body { position: absolute; inset: auto 0 0; padding: clamp(24px, 3vw, 40px); display: grid; gap: 10px; }
.b2b-card .eyebrow { margin: 0; }
.b2b-card__title { font-family: var(--display); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; }
.b2b-card__text { color: var(--muted); max-width: 42ch; }
.b2b-card__cta { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 8px; padding: 0.7em 1.3em; border-radius: 999px; background: var(--lime); color: var(--teal-900); font-weight: 600; transition: gap 0.3s var(--ease); }
.b2b-card__cta svg { width: 1.1em; height: 1.1em; }
.b2b-card:hover .b2b-card__cta { gap: 14px; }
@media (max-width: 860px) { .b2b__grid { grid-template-columns: 1fr; } .b2b-card { min-height: 440px; } }

/* Yhteydenotto */
.contact { background: var(--teal-950); overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact__visual { position: relative; padding: 20px 0; }
.contact__court { position: absolute; right: -6%; top: 50%; width: min(420px, 70%); transform: translateY(-50%) rotate(-8deg); opacity: 0.22; z-index: 0; }
.contact__bouncer { position: absolute; right: 16%; top: -18%; font-size: 52px; z-index: 1; animation: bounce 0.7s infinite cubic-bezier(0.5, 0, 0.5, 1) alternate; }
.contact__intro { position: relative; z-index: 2; }
.contact__intro .lead-text { color: var(--muted); max-width: 30ch; }
.contact__mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.contact__mail svg { width: 22px; height: 22px; color: var(--lime); }
.contact__mail a { text-decoration: none; border-bottom: 2px solid var(--lime); }
.contact__card { position: relative; border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px); }
.contact__card--light { background: var(--white); color: var(--teal-900); border-color: rgba(2, 50, 60, 0.12); box-shadow: 0 40px 80px -40px rgba(2, 50, 60, 0.35); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } .contact__bouncer { right: 6%; top: 0; } }

.person { display: flex; gap: 16px; align-items: center; margin-top: 18px; padding: 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); max-width: 460px; }
.person__avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--lime); color: var(--teal-900); font-family: var(--display); font-size: 1.5rem; }
.person__label { margin: 0; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); font-weight: 600; }
.person__name { margin: 0; font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.person__links { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.92rem; }
.person__links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.person__links a:hover { color: var(--lime); }
.person__links svg { width: 16px; height: 16px; color: var(--lime); }

.form { display: grid; gap: 16px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 16px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, 0.05);
  color: inherit; font: inherit; font-size: 1rem; transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s; resize: vertical;
}
.field textarea { min-height: 140px; }
.field label { position: absolute; left: 19px; top: 18px; font-size: 1rem; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform 0.25s var(--ease), color 0.25s; }
.field__req { color: var(--lime); }
.field__hint { position: absolute; left: 19px; top: 30px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: rgba(196, 247, 64, 0.05); box-shadow: 0 0 0 4px rgba(196, 247, 64, 0.12); }
.field input:focus ~ label, .field textarea:focus ~ label,
.field input:not(:placeholder-shown) ~ label, .field textarea:not(:placeholder-shown) ~ label { transform: translateY(-11px) scale(0.76); color: var(--lime); }
.field input:focus:placeholder-shown ~ .field__hint, .field textarea:focus:placeholder-shown ~ .field__hint { opacity: 1; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff7a7a; }
.contact__card--light .field input, .contact__card--light .field textarea { border-color: rgba(2, 50, 60, 0.18); background: #f7f9f2; }
.contact__card--light .field label { color: rgba(2, 50, 60, 0.6); }
.contact__card--light .field__hint { color: rgba(2, 50, 60, 0.35); }
.contact__card--light .field input:focus, .contact__card--light .field textarea:focus { border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(10, 85, 99, 0.12); background: #fff; }
.contact__card--light .field input:focus ~ label, .contact__card--light .field textarea:focus ~ label,
.contact__card--light .field input:not(:placeholder-shown) ~ label, .contact__card--light .field textarea:not(:placeholder-shown) ~ label { color: var(--teal-700); }
.contact__card--light .field__req { color: var(--teal-700); }
.contact__card--light .form__consent, .contact__card--light .form__status { color: rgba(2, 50, 60, 0.7); }
.contact__card--light .btn--lime { box-shadow: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit .tball { width: 1em; height: 1em; }
.form__submit.is-sending span { opacity: 0.7; }
.form__submit.is-sending svg { animation: nudge 0.6s infinite alternate var(--ease); }
@keyframes nudge { to { transform: translateX(6px); } }
.form__consent { margin: 0; font-size: 0.8rem; color: var(--muted); }
.form__consent a { color: inherit; }
.form__status { margin: 0; min-height: 1.2em; font-size: 0.9rem; color: #ffb3b3; }
.form-success { display: grid; justify-items: center; text-align: center; gap: 18px; padding: 40px 10px; }
.form-success[hidden] { display: none; }
.form-success__target { width: 140px; height: 140px; }
.form-success__target .ring { fill: none; stroke: currentColor; stroke-width: 3; opacity: 0.35; }
.form-success__target .hit { fill: var(--lime); transform-box: fill-box; transform-origin: center; animation: hitIn 0.9s var(--ease-bounce) both 0.2s; filter: drop-shadow(0 0 12px var(--lime-glow)); }
.contact__card--light .form-success__target .hit { stroke: var(--teal-900); stroke-width: 2; }
@keyframes hitIn { 0% { transform: translate(140px, -160px) scale(0.6); } 60% { transform: translate(0, 0) scale(1.5, 0.6); } 80% { transform: scale(0.9, 1.15); } 100% { transform: none; } }
.form-success__text { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; margin: 0; max-width: 22ch; }

/* Sivujen herot */
.page-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; padding: calc(var(--header-h) + 60px) 0 clamp(60px, 9vw, 120px); isolation: isolate; }
.page-hero--short { min-height: 62svh; }
.page-hero__media { position: absolute; inset: -8% 0 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s var(--ease) both; }
.page-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--teal-900) 0%, rgba(2, 50, 60, 0.35) 60%, rgba(1, 26, 32, 0.6) 100%), linear-gradient(90deg, rgba(1, 26, 32, 0.85), rgba(1, 26, 32, 0) 70%); }
.page-hero .display-hero { max-width: 16ch; margin-bottom: 0.3em; }
.page-hero .hero__lead { max-width: 52ch; font-size: clamp(1.05rem, 0.7vw + 0.9rem, 1.3rem); }
.page-hero .display-hero .word { animation: rise2 1s var(--ease) both; animation-delay: calc(var(--wi) * 70ms + 150ms); opacity: 1; transform: none; transition: none; }
@keyframes rise2 { from { transform: translateY(0.7em); opacity: 0; } to { transform: none; opacity: 1; } }
.page-hero--split { align-items: center; }
.page-hero--split .page-hero__media { inset: 0 0 0 auto; width: 50%; }
.page-hero--split .page-hero__media img { object-position: center 30%; }
.page-hero--split .page-hero__shade { background: linear-gradient(90deg, var(--teal-900) 48%, rgba(2, 50, 60, 0.2) 75%, rgba(2, 50, 60, 0) 100%), linear-gradient(0deg, var(--teal-900), transparent 25%); }
.page-hero--split .page-hero__content > * { max-width: 52%; }
.page-hero--split .display-hero { font-size: clamp(2.6rem, 5vw, 4.9rem); }
@media (max-width: 860px) {
  .page-hero--split .page-hero__media { width: 100%; }
  .page-hero--split .page-hero__shade { background: linear-gradient(0deg, var(--teal-900) 25%, rgba(2, 50, 60, 0.55) 70%, rgba(1, 26, 32, 0.5) 100%); }
  .page-hero--split .page-hero__content > * { max-width: none; }
  .page-hero--split { align-items: flex-end; min-height: 88svh; }
}

/* Mitoitus */
.spec { background: radial-gradient(60% 60% at 0% 100%, rgba(15, 135, 150, 0.22), transparent 70%); }
.spec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.spec .lead-text { color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 0; }
.stat { margin: 0; padding: 20px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.stat__value { font-family: var(--display); font-size: clamp(2.6rem, 4.5vw, 3.8rem); line-height: 1; color: var(--lime); }
.stat__value small { font-size: 0.45em; margin-left: 4px; color: var(--white); }
.stat dd { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.spec__diagram { margin: 0; }
.spec__diagram svg { width: 100%; height: auto; overflow: visible; }
.spec__diagram .draw--soft { stroke: rgba(196, 247, 64, 0.35); stroke-dasharray: 6 8; stroke-dashoffset: 0; opacity: 0; transition: opacity 1.2s var(--ease) 1.2s; }
.spec__diagram.is-drawn .draw--soft { opacity: 1; }
.spec__wall rect:first-child { fill: rgba(15, 135, 150, 0.25); }
.spec__logo { font-family: var(--display); font-size: 40px; fill: var(--lime); text-anchor: middle; font-style: italic; opacity: 0; transition: opacity 1s 1.4s; }
.spec__target { fill: var(--lime); opacity: 0; transition: opacity 0.6s 1.8s; }
.is-drawn .spec__logo, .is-drawn .spec__target { opacity: 1; }
.dim { stroke: var(--lime); stroke-width: 1.6; fill: none; opacity: 0; transition: opacity 0.8s 1.6s; }
.is-drawn .dim { opacity: 1; }
.spec__label { font-family: var(--display); fill: var(--white); font-size: 22px; text-anchor: middle; opacity: 0; transition: opacity 0.8s 1.9s; }
.spec__label--start { text-anchor: start; }
.is-drawn .spec__label { opacity: 1; }
.spec__ball { fill: var(--lime); filter: drop-shadow(0 0 10px var(--lime-glow)); opacity: 0; }
.is-drawn .spec__ball { opacity: 1; animation: specBall 2.6s 2.2s infinite var(--ease); }
@keyframes specBall { 0% { transform: translate(0, 0); } 45% { transform: translate(-60px, -340px); } 55% { transform: translate(-60px, -340px) scale(1.4, 0.7); } 100% { transform: translate(0, 0); } }
@media (max-width: 900px) { .spec__grid { grid-template-columns: 1fr; } }

/* UKK */
.faq { background: var(--teal-950); }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__grid > div:first-child { position: sticky; top: calc(var(--header-h) + 40px); }
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); transition: border-color 0.3s, background-color 0.3s; overflow: hidden; }
.faq__item[open] { border-color: rgba(196, 247, 64, 0.5); background: rgba(196, 247, 64, 0.05); }
.faq__item summary { display: flex; align-items: center; gap: 18px; padding: 22px 24px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__num { font-family: var(--display); color: var(--lime); font-size: 1.1rem; }
.faq__q { flex: 1; font-family: var(--display); font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.15; }
.faq__icon { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line); transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s; }
.faq__icon svg { width: 18px; height: 18px; }
.faq__item[open] .faq__icon { transform: rotate(135deg); background: var(--lime); color: var(--teal-900); border-color: var(--lime); }
.faq__a { padding: 0 24px 24px 66px; color: var(--muted); }
.faq__a p { margin: 0; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq__grid > div:first-child { position: static; } .faq__a { padding-left: 24px; } }

/* Franchise */
.fr { padding-top: clamp(48px, 6vw, 80px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; background: rgba(255, 255, 255, 0.03); }
.fr__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fr-card { position: relative; border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)); overflow: hidden; isolation: isolate; transition: transform 0.5s var(--ease), border-color 0.4s, opacity 1s var(--ease); }
.fr-card:hover { transform: translateY(-6px); border-color: rgba(196, 247, 64, 0.5); }
.fr-card__num { display: block; font-family: var(--display); font-size: 5rem; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px var(--lime); margin-bottom: 20px; }
.fr-card__title { font-family: var(--display); font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.1; margin-bottom: 0.6em; }
.fr-card p { color: var(--muted); margin: 0; }
.fr-card:last-child { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 900px) { .fr__cards { grid-template-columns: 1fr; } .fr-card:last-child { grid-column: auto; grid-row: auto; } }

/* Tietosuoja */
.page-light { background: var(--paper); color: var(--teal-900); }
.page-light .site-header:not(.is-scrolled) { background: var(--teal-900); }
.legal { padding: calc(var(--header-h) + 80px) 0 120px; }
.legal__inner { max-width: 820px; }
.legal .eyebrow { color: var(--teal-700); }
.legal h2 { font-family: var(--display); font-size: 1.8rem; margin: 1.6em 0 0.4em; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal a { color: var(--teal-700); font-weight: 600; }
.legal__updated { margin-top: 3em; font-size: 0.9rem; opacity: 0.7; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 80px; }
.notfound__code { font-family: var(--display); font-size: clamp(7rem, 26vw, 18rem); line-height: 0.85; color: var(--lime); margin: 0 0 0.1em; display: flex; justify-content: center; align-items: center; }
.notfound__code .tball { width: 0.7em; height: 0.7em; animation: bounce 0.8s infinite cubic-bezier(0.5, 0, 0.5, 1) alternate; }
.notfound .hero__lead { margin-left: auto; margin-right: auto; }

/* Alatunniste */
.site-footer { position: relative; background: var(--teal-950); border-top: 1px solid var(--line); overflow: hidden; }
.site-footer__marquee { overflow: hidden; padding: 40px 0 10px; }
.site-footer__track { display: flex; align-items: center; gap: 0.4em; width: max-content; font-family: var(--display); font-size: clamp(4rem, 13vw, 11rem); line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(196, 247, 64, 0.5); animation: marquee 40s linear infinite; }
.site-footer__track .tball { width: 0.35em; height: 0.35em; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
.site-footer__brand img { height: 52px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { color: var(--muted); max-width: 32ch; font-size: 0.95rem; }
.site-footer__h { font-family: var(--body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; color: var(--muted); font-size: 0.95rem; }
.site-footer li a { text-decoration: none; transition: color 0.2s; }
.site-footer li a:hover { color: var(--lime); }
.site-footer__social { display: flex; gap: 10px; }
.social-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.4s var(--ease-bounce); --icon-cut: var(--teal-950); }
.social-icon svg { width: 22px; height: 22px; }
.social-icon:hover { background: var(--lime); color: var(--teal-900); border-color: var(--lime); transform: translateY(-4px) rotate(-6deg); --icon-cut: var(--lime); }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 22px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--lime); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* Videoikkuna */
.video-modal { width: min(1100px, 92vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius); background: #000; overflow: visible; color: var(--white); }
.video-modal.is-vertical { width: min(420px, 92vw); }
.video-modal::backdrop { background: rgba(1, 20, 24, 0.86); backdrop-filter: blur(8px); }
.video-modal[open] { animation: modalIn 0.5s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.92) translateY(20px); } }
.video-modal__frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.video-modal.is-vertical .video-modal__frame { aspect-ratio: 9 / 16; max-height: 86vh; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close { position: absolute; top: -18px; right: -18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--lime); color: var(--teal-900); display: grid; place-items: center; z-index: 2; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: transform 0.3s var(--ease-bounce); }
.video-modal__close svg { width: 20px; height: 20px; }
.video-modal__close:hover { transform: rotate(90deg); }
@media (max-width: 600px) { .video-modal__close { top: -56px; right: 0; } }

/* Vähennetty liike */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, [data-split-words] .word { opacity: 1 !important; transform: none !important; }
  [data-split] .char { transform: none !important; }
  .reveal--clip { clip-path: none !important; }
  .hero__dot { opacity: 1; }
  .marquee__track, .site-footer__track { animation: none !important; }
}
