/* =========================================================
   Ursus Live! – sivuston tyylit
   ========================================================= */

:root {
  --bg: #0a0a0d;
  --bg-2: #101015;
  --surface: #15151b;
  --surface-2: #1c1c24;
  --surface-3: #24242e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f6;
  --text-2: #c9c9d2;
  --muted: #8c8c99;
  --red: #ff2b3a;
  --red-2: #e0101f;
  --red-glow: rgba(255, 43, 58, .35);
  --red-soft: rgba(255, 43, 58, .12);
  --green: #2fd27a;
  --amber: #ffb020;

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--red); color: #fff; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 13, .6);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(10, 10, 13, .88); border-bottom-color: var(--line); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: 24px; letter-spacing: .01em; text-transform: uppercase;
}

.brand-accent { color: var(--red); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.site-nav a.is-active { color: var(--text); }
.site-nav a.is-active:not(.nav-cta)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--red); border-radius: 2px;
}
.site-nav .nav-cta {
  margin-left: 8px; background: var(--red); color: #fff; font-weight: 600;
  box-shadow: 0 6px 20px var(--red-glow);
}
.site-nav .nav-cta:hover { background: var(--red-2); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px;
  background: transparent; cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .brand-name { font-size: 20px; }
  .brand-logo { height: 38px; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: rgba(10, 10, 13, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
  .site-nav a.is-active:not(.nav-cta)::after { display: none; }
  .site-nav a.is-active { background: rgba(255, 255, 255, .06); }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Toasts ---------- */
.toast {
  position: fixed; z-index: 200; left: 50%; top: calc(var(--header-h) + 14px);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 32px); width: max-content;
  padding: 12px 12px 12px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: 15px; animation: toast-in .4s var(--ease);
}
.toast-icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.toast-ok .toast-icon { background: rgba(47, 210, 122, .16); color: var(--green); }
.toast-err .toast-icon { background: var(--red-soft); color: var(--red); }
.toast-close {
  flex: none; border: 0; background: transparent; color: var(--muted);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px;
}
.toast.is-hiding { opacity: 0; transform: translate(-50%, -10px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -12px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 28px var(--red-glow); }
.btn-primary:hover { background: var(--red-2); box-shadow: 0 10px 34px var(--red-glow); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .24); }
.btn-light { background: #fff; color: #111; }
.btn-light:hover { background: #f0f0f0; }
.btn-outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

.icon-btn, .chip, .pager-num {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  text-decoration: none; font-weight: 600; font-size: 14px; color: var(--text);
  transition: background .2s, border-color .2s;
}
.icon-btn:hover, .chip:hover, a.pager-num:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, .24); }
.pager-num.is-current { background: var(--red); border-color: var(--red); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s, color .2s;
}
.link-arrow:hover { color: var(--red); border-color: var(--red); }

/* ---------- On-air badge ---------- */
.onair {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2);
}
.onair-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 176, 32, .6); animation: pulse 2s infinite; }
.onair.is-live { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 30px var(--red-glow); }
.onair.is-live .onair-dot { background: #fff; animation-name: pulse-white; }
.onair.is-idle .onair-dot { background: var(--muted); animation: none; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, .6); } 70% { box-shadow: 0 0 0 10px rgba(255, 176, 32, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0); } }
@keyframes pulse-white { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }

.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(255, 43, 58, .22), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(255, 43, 58, .10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 60% 30%, #000 20%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-grid-solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 4.8vw, 64px); line-height: .95; letter-spacing: -.005em;
  text-wrap: balance;
}
.hero-title-xl { font-size: clamp(46px, 8vw, 104px); }
.hero-title em { font-style: italic; color: var(--red); }
.hero-meta { font-size: 18px; color: var(--text-2); font-weight: 500; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: right; }

.countdown { display: flex; gap: 10px; }
.countdown > div {
  min-width: 74px; padding: 10px 8px 8px; text-align: center;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 14px;
}
.countdown span {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Monitor frame */
.monitor {
  position: relative; border-radius: var(--radius-lg); padding: 10px;
  background: linear-gradient(180deg, #1d1d25, #121218);
  border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .5) inset;
}
.monitor::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, rgba(255, 43, 58, .5), transparent 40%);
  filter: blur(24px); opacity: .55;
}
.monitor-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 6px 10px; font-family: var(--font-display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.rec { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--amber); }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rec.is-live { color: var(--red); }
.rec.is-live::before { animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.video-frame {
  position: relative; display: block; aspect-ratio: 16 / 9; width: 100%;
  border-radius: calc(var(--radius-lg) - 10px); overflow: hidden; background: #000;
}
.video-frame iframe, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-poster img { transition: transform .6s var(--ease); }
.video-poster:hover img { transform: scale(1.04); }
.video-placeholder { display: grid; place-items: center; text-decoration: none; background: radial-gradient(circle at 50% 40%, #26262f, #0b0b0e); }
.placeholder-text { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-weight: 600; color: var(--text-2); }

.play-badge {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--red); box-shadow: 0 10px 30px var(--red-glow);
  transition: transform .3s var(--ease);
}
.play-badge svg { width: 28px; height: 28px; fill: #fff; margin-left: 3px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-note { text-align: left; }
}
@media (max-width: 420px) {
  .countdown { gap: 6px; }
  .countdown > div { min-width: 0; flex: 1; }
  .countdown span { font-size: 30px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow-center { display: flex; justify-content: center; color: var(--muted); }
.eyebrow-center::before { display: none; }

.section-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(32px, 4.4vw, 54px); line-height: 1; text-wrap: balance;
}
.section-lead { margin-top: 18px; font-size: 18px; color: var(--text-2); max-width: 62ch; }
.section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.feature::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--red);
  transition: width .5s var(--ease);
}
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature:hover::after { width: 100%; }
.feature-no {
  position: absolute; right: 22px; top: 16px;
  font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; color: rgba(255, 255, 255, .05);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--red-soft); color: var(--red);
}
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; text-transform: uppercase; margin-bottom: 10px; }
.feature p { color: var(--text-2); font-size: 15.5px; }

@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* ---------- Calendar ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.month-nav { display: flex; align-items: center; gap: 6px; }

.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.segmented button {
  border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s;
}
.segmented button[aria-selected="true"] { background: var(--surface-3); color: var(--text); }

.panel { animation: fade-up .35s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }

.calendar {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--line);
  display: grid; gap: 1px;
}
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.cal-wd {
  background: var(--surface); padding: 12px 8px; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.cal-day {
  position: relative; min-height: 112px; padding: 10px; background: var(--bg);
  display: flex; flex-direction: column; gap: 6px; transition: background .2s;
}
.cal-day.is-empty { background: repeating-linear-gradient(135deg, var(--bg-2) 0 6px, var(--bg) 6px 12px); }
.cal-day.is-past .cal-num { color: #55555f; }
.cal-num { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; color: var(--text-2); }

.cal-day.is-today { background: var(--surface); }
.cal-day.is-today .cal-num {
  display: inline-grid; place-items: center; align-self: flex-start;
  min-width: 30px; height: 30px; margin: -5px 0 0 -5px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: #0a0a0d;
}

.cal-day.has-booking { cursor: pointer; background: linear-gradient(180deg, rgba(255, 43, 58, .16), rgba(255, 43, 58, .05)); }
.cal-day.has-booking::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.cal-day.has-booking:hover, .cal-day.has-booking:focus-visible { background: linear-gradient(180deg, rgba(255, 43, 58, .28), rgba(255, 43, 58, .1)); outline-offset: -2px; }
.cal-day.has-booking .cal-num { color: #fff; }
.cal-day.has-booking.is-past { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }
.cal-day.has-booking.is-past::before { background: #55555f; }
.cal-day.has-booking.is-past .cal-event { color: var(--muted); }

.cal-events { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-event {
  font-size: 12.5px; font-weight: 500; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; word-break: break-word;
}

.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--text-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg-live { background: var(--red); }
.lg-today { background: #fff; border-radius: 50%; }

@media (max-width: 700px) {
  .cal-day { min-height: 64px; padding: 6px 4px; align-items: center; }
  .cal-num { font-size: 16px; }
  .cal-day.is-today .cal-num { margin: 0; min-width: 26px; height: 26px; }
  .cal-events { display: none; }
  .cal-day.has-booking::before { left: 50%; top: auto; bottom: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; }
  .cal-wd { font-size: 12px; letter-spacing: .06em; padding: 10px 2px; }
}

/* Upcoming list */
.upcoming { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.upcoming-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 14px 18px 14px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s;
}
.upcoming-item:hover { border-color: var(--line-2); }
.date-tile {
  width: 64px; height: 64px; border-radius: 14px; display: grid; place-content: center; text-align: center;
  background: var(--bg); border: 1px solid var(--line-2);
}
.dt-day { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; }
.dt-mon { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.upcoming-body h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.upcoming-body p { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 600; }

@media (max-width: 640px) {
  .upcoming-item { grid-template-columns: auto 1fr; }
  .upcoming-item .btn { grid-column: 1 / -1; }
}

/* Empty state */
.empty {
  text-align: center; padding: 48px 20px; border-radius: var(--radius);
  border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .02);
}
.empty-icon { font-size: 40px; line-height: 1; margin-bottom: 14px; filter: grayscale(.2); }
.empty h3 { font-size: 20px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 15px; }

/* ---------- VOD grid ---------- */
.vod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.vod {
  display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.vod:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.vod-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; opacity: .9; }
.vod:hover .vod-thumb img { transform: scale(1.05); opacity: 1; }
.vod-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55)); }
.vod .play-badge { width: 56px; height: 56px; margin: -28px 0 0 -28px; transform: scale(.85); opacity: 0; z-index: 1; }
.vod .play-badge svg { width: 22px; height: 22px; }
.vod:hover .play-badge, .vod:focus-visible .play-badge { opacity: 1; transform: scale(1); }
.vod-src {
  position: absolute; left: 12px; bottom: 10px; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff;
}
.vod-body { padding: 16px 18px 20px; }
.vod-body time { font-size: 13px; color: var(--muted); }
.vod-body h3 { margin-top: 6px; font-size: 17px; font-weight: 600; line-height: 1.35; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }

/* ---------- Clients ---------- */
.clients-title {
  text-align: center; margin: -4px 0 28px;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 3vw, 36px); line-height: 1;
}
.clients { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.client { width: min(100%, 300px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.client-logo {
  position: relative; width: 100%; height: 150px; padding: 22px 30px;
  display: grid; place-items: center; overflow: hidden;
  border-radius: var(--radius-lg); background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.client-logo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.client-logo img {
  max-width: 100%; max-height: 100px; width: auto; height: auto; object-fit: contain;
  /* vaalea taustalaatikko logossa sulautuu valkoiseen korttiin */
  mix-blend-mode: multiply;
  filter: grayscale(1) brightness(1.12) contrast(1.15);
  opacity: .8; transition: filter .35s, opacity .35s, transform .35s var(--ease);
}
.client:hover .client-logo { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 24px 50px rgba(255, 43, 58, .18); }
.client:hover .client-logo::after { transform: scaleX(1); }
.client:hover .client-logo img { filter: brightness(1.12) contrast(1.1); opacity: 1; transform: scale(1.04); }
.client-name { font-size: 14px; font-weight: 500; color: var(--muted); text-align: center; transition: color .3s; }
.client:hover .client-name { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--red-2), var(--red) 55%, #ff5a3c);
  box-shadow: 0 24px 70px rgba(255, 43, 58, .25);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background: repeating-linear-gradient(-55deg, #fff 0 2px, transparent 2px 22px);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 48px); text-transform: uppercase; line-height: 1; }
.cta-band p { margin-top: 10px; font-size: 17px; color: rgba(255, 255, 255, .9); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero (alasivut) ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 40px); }
.page-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 7vw, 84px); line-height: .95; }
.page-lead { margin-top: 16px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 56ch; }

/* ---------- Forms ---------- */
.section-form { padding-top: 0; }
.form-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form-card {
  position: relative; display: grid; gap: 20px;
  padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
fieldset + fieldset { padding-top: 24px; background: linear-gradient(var(--line), var(--line)) top / 100% 1px no-repeat; }
legend {
  float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .04em; text-transform: uppercase;
}
.step {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--red-soft); color: var(--red); font-size: 15px;
}

.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.req { color: var(--red); }

.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
  font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #5f5f6b; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .24); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); background: #0d0d11; }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--bg) inset; -webkit-text-fill-color: var(--text); }

.form-note { font-size: 13px; color: var(--muted); text-align: center; }

.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.alert { padding: 16px 18px; border-radius: 14px; margin-bottom: 16px; font-size: 15px; border: 1px solid; }
.alert-ok { background: rgba(47, 210, 122, .1); border-color: rgba(47, 210, 122, .35); color: #9ff0c4; }
.alert-err { background: var(--red-soft); border-color: rgba(255, 43, 58, .4); color: #ffb3b9; }

.form-aside { display: grid; gap: 16px; }
.aside-card { padding: 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.aside-card h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
.aside-card p { color: var(--text-2); font-size: 15px; margin-bottom: 12px; }
.aside-mail { font-size: 18px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--red); word-break: break-all; }
.aside-mail:hover { color: var(--red); }
.aside-social { display: flex; gap: 16px; flex-wrap: wrap; }
.aside-social a { text-decoration: none; font-weight: 600; color: var(--text-2); }
.aside-social a:hover { color: var(--red); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: center; color: var(--text-2); }
.checklist li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 700;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s; }
.modal-panel {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  animation: pop .3s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface-2); font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--surface-3); }
.modal-kicker { font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-size: 14px; }
.modal-title { font-family: var(--font-display); font-weight: 800; font-size: 40px; margin: 2px 0 18px; }
.popup-booking { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); }
.popup-booking h4 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.popup-time { color: var(--muted); font-size: 14px; }
.popup-image { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.popup-image img { width: 100%; height: 100%; object-fit: cover; }
.popup-booking .video-frame { border-radius: 12px; }
.popup-booking .btn { justify-self: start; }
body.modal-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr auto; gap: 32px; align-items: center; padding-top: 40px; padding-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 48px; width: auto; }
.footer-name { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 22px; text-transform: uppercase; }
.footer-tag { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer-links a { text-decoration: none; color: var(--text-2); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface); transition: background .2s, border-color .2s, transform .2s;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-social img { width: 20px; height: 20px; object-fit: contain; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-links { justify-content: flex-start; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Dokumenttisivut (tietosuoja) ---------- */
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.doc-toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 22px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
}
.doc-toc-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.doc-toc li { counter-increment: toc; }
.doc-toc a {
  display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px;
  text-decoration: none; font-size: 14px; color: var(--text-2); transition: background .2s, color .2s;
}
.doc-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; color: var(--muted); }
.doc-toc a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }

.prose {
  max-width: 760px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 16.5px; line-height: 1.75; color: var(--text-2);
}
.prose h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .02em;
  color: var(--text); margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--red); }
.prose a:not(.btn) { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--red); }
.doc-updated { margin-top: 32px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
}

/* ---------- Kielivalitsin ---------- */
.header-tools { display: none; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; padding: 3px; margin-left: 6px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
}
.site-nav .lang-switch a, .lang-switch a {
  min-width: 36px; padding: 5px 9px; border-radius: 999px; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .08em;
  color: var(--muted); text-decoration: none; background: transparent;
  transition: background .2s, color .2s;
}
.site-nav .lang-switch a:hover, .lang-switch a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.site-nav .lang-switch a.is-active, .lang-switch a.is-active { background: var(--text); color: #0a0a0d; }
.site-nav .lang-switch a.is-active::after { display: none; }
.lang-switch-mobile { display: none; margin-left: 0; }

@media (max-width: 860px) {
  .header-tools { display: flex; }
  .lang-switch-mobile { display: inline-flex; }
  .lang-switch-desktop { display: none; }
  .lang-switch a { padding: 7px 10px; }
}
.brand-name { white-space: nowrap; }
@media (max-width: 420px) { .brand-name { font-size: 18px; } .brand { gap: 8px; } .brand-logo { height: 34px; } }
@media (max-width: 340px) { .brand-name { display: none; } }
