/* ================================================================
   Musiikkiopisto Avonia — uusi sivusto (testiversio)
   Typografia: Omnes-perhe (Adobe Fonts, kit jos5itm)
   Värit: brändikirjan mukaiset
   ================================================================ */

:root {
  --bg: #FBF6F8;
  --surface: #FFFFFF;
  --surface-2: #F5E9EF;
  --ink: #2A0D1B;
  --muted: #7A6670;
  --muted-2: #A5919C;
  --line: #EEDEE5;
  --line-strong: #DCC3D0;

  --magenta: #D70060;
  --turquoise: #01A4A4;
  --violet-deep: #4B1431;
  --on-dark: #FBF0F5;

  --sininen: #00A1CB;
  --vaalea-magenta: #D55391;
  --foot-accent: var(--magenta);
  --punainen: #E54028;
  --oranssi: #F18D05;
  --keltainen: #FFC40A;
  --lime: #61AE24;

  --shadow: 0 1px 2px rgba(42,13,27,.06), 0 12px 32px rgba(42,13,27,.07);
  --shadow-lg: 0 8px 16px rgba(42,13,27,.08), 0 28px 64px rgba(42,13,27,.13);

  /* Yksi perhe, neljä roolia */
  --f-display: "omnes-cond-thin", "omnes-cond", "omnes-pro", system-ui, sans-serif;
  --f-label:   "omnes-cond", "omnes-pro", system-ui, sans-serif;
  --f-body:    "omnes-pro", system-ui, -apple-system, sans-serif;
  --f-lead:    "omnes-narrow", "omnes-pro", system-ui, sans-serif;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #230817;
    --surface: #320F23;
    --surface-2: #3D1329;
    --ink: #FBF0F5;
    --muted: #CBADC0;
    --muted-2: #9A7E90;
    --line: #4A1E36;
    --line-strong: #602847;
  --foot-accent: var(--vaalea-magenta);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    --shadow-lg: 0 8px 20px rgba(0,0,0,.35), 0 32px 72px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --bg: #230817;
  --surface: #320F23;
  --surface-2: #3D1329;
  --ink: #FBF0F5;
  --muted: #CBADC0;
  --muted-2: #9A7E90;
  --line: #4A1E36;
  --line-strong: #602847;
  --foot-accent: var(--vaalea-magenta);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  --shadow-lg: 0 8px 20px rgba(0,0,0,.35), 0 32px 72px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 500;      /* Omnes Pro Medium — 400 oli liian hento leipätekstiin */
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 26px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 26px; }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }

/* Display = Omnes Narrow Italic. Brändikirjan mukainen pääotsikkofontti:
   "inhimillinen, raikas ja kevyt". Korostukset samassa perheessä painolla 700. */
h1, h2 {
  font-family: var(--f-lead);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.005em;
  line-height: .88;
}
h1 b, h1 strong, h2 b, h2 strong { font-weight: 700; }
h3 { font-family: var(--f-label); font-weight: 700; letter-spacing: -.005em; line-height: 1.2; }
h4 { font-family: var(--f-label); font-weight: 700; }

/* ---------------- eyebrow ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-label); font-weight: 700;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--magenta);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; flex: none; }

/* ---------------- header ---------------- */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
/* HUOM: padding-block, ei lyhennemuotoa — muuten .wrap:n sivumarginaalit nollautuisivat */
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; color: var(--ink); }
/* Virallinen vaakalockup. Kirjaimet perivät tekstivärin, liikemerkki pitää omat värinsä. */
.brand svg.lockup { width: auto; height: 36px; flex: none; display: block; }
nav.primary { display: flex; align-items: center; gap: 28px; }
nav.primary a {
  text-decoration: none; color: var(--ink);
  font-family: var(--f-label); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  padding: 6px 1px; border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
nav.primary a:hover { border-color: var(--magenta); }
nav.primary a[aria-current="page"] { border-color: var(--magenta); color: var(--magenta); }
nav.primary a.lang { color: var(--muted); }

.nav-cta {
  background: var(--magenta); color: #fff;
  font-family: var(--f-label); font-weight: 700; font-size: 14px; letter-spacing: .02em;
  padding: 11px 22px; border-radius: 100px; text-decoration: none;
  box-shadow: var(--shadow); flex: none;
  transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--line-strong);
  color: var(--ink); align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.mobile-menu {
  display: none; flex-direction: column;
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { max-height: 460px; }
.mobile-menu a {
  padding: 15px 26px; text-decoration: none; color: var(--ink);
  font-family: var(--f-label); font-weight: 700; font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.nav-cta { margin: 14px 26px 18px; padding: 14px 20px; text-align: center; border-bottom: none; }

/* ---------------- buttons ---------------- */
.btn {
  font-family: var(--f-label); font-weight: 700; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 100px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--magenta); color: #fff; box-shadow: var(--shadow); border: 1.5px solid var(--magenta); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: color-mix(in srgb, var(--magenta) 86%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--magenta); color: var(--magenta); }
.on-dark .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover { background: #fff; color: var(--violet-deep); border-color: #fff; }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; overflow: hidden;
  /* Gradientti on AINA näkyvissä videon takana — estää tyhjän valkoisen alueen mobiilissa */
  background: linear-gradient(155deg, var(--violet-deep) 0%, #6B1F45 40%, var(--magenta) 76%, var(--vaalea-magenta) 100%);
}
.hero-media iframe, .hero-media video, .hero-media video {
  position: absolute; top: 50%; left: 50%;
  width: 100%; height: 100%;
  min-width: 177.78vh; min-height: 56.25vw;
  max-width: none; /* kumoaa globaalin max-width:100%:n, muuten video ei peitä */
  transform: translate(-50%, -50%);
  object-fit: cover; border: none; pointer-events: none;
}
.hero-scrim {
  position: absolute; inset: 0;
  /* Raikkaampi: kevyt sävy, brändin molemmat päävärit vastakkaisilta reunoilta
     (turkoosi + magenta) yhden tunkkaisen luumukalvon sijaan. Tummennus vain
     alareunaan, jotta painikkeet ja nosto erottuvat. */
  background:
    linear-gradient(180deg, rgba(28,9,20,.08) 0%, rgba(28,9,20,.20) 52%, rgba(38,12,26,.66) 100%),
    linear-gradient(118deg, rgba(1,164,164,.26) 0%, rgba(1,164,164,0) 46%),
    linear-gradient(292deg, rgba(215,0,96,.24) 0%, rgba(215,0,96,0) 52%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: 40px 68px;   /* ei lyhennemuotoa, ks. .nav-row */
}
.hero-lockup { margin-bottom: 18px; }
.hero-lockup svg { width: min(196px, 56vw); height: auto; }
.hero h1 {
  font-size: clamp(62px, 7vw, 100px);   /* desktopilla 100px kuten nykyisell\00e4 avonia.fi:ll\00e4 */
  line-height: .61;           /* tiukka ladonta, rivit katkaistu k\00e4sin */
  color: #fff; max-width: none;
  text-shadow: 0 2px 26px rgba(24,6,16,.42);
  padding-bottom: .12em;      /* tilaa p:n ja j:n alapidennyksille */
}
.hero-sub {
  margin: 26px auto 0; max-width: 42ch;
  font-family: var(--f-lead); font-weight: 500; font-style: italic;
  font-size: clamp(17px, 1.6vw, 24px); line-height: 1.42;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 14px rgba(24,6,16,.5);
}
.hero-actions { display: flex; gap: 13px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }

/* Logo heron p\00e4\00e4tteen\00e4 */
.hero-sign { margin-top: 52px; }
/* Skaalautuu otsikon mukana: pieni logo ei kanna ison otsikon rinnalla */
.hero-sign svg { width: clamp(186px, 17.5vw, 268px); height: auto; opacity: .95; }

@keyframes dot-pulse { 0%,100% { opacity: 1; } 50% { opacity: .42; } }

/* Ajankohtaisnosto omana kaistaleenaan heron alla */
.announce-wrap { padding: 0; }
.announce {
  position: relative; margin-top: -34px; z-index: 5;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
  box-shadow: var(--shadow-lg);
  padding: 14px 30px 14px 14px;
}
.announce .dot {
  width: 46px; height: 46px; border-radius: 50%; background: var(--keltainen); flex: none;
  animation: dot-pulse 2.8s ease-in-out infinite;
}
.announce p { flex: 1 1 320px; font-size: 16px; line-height: 1.5; }
.announce b { font-weight: 700; }
.announce-link {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-family: var(--f-label); font-weight: 700; font-size: 14.5px;
  color: var(--magenta); text-decoration: none; white-space: nowrap;
}
.announce-link svg { width: 15px; height: 15px; }
.announce-link:hover { text-decoration: underline; }

/* Sisäsivujen kevyempi hero */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--violet-deep), #7A2050 88%); color: #fff; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.page-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  /* Sama raikas resepti kuin etusivun herossa: kevyt sävy, tummennus vain
     vasempaan reunaan tekstin taakse, brändin molemmat päävärit aksentteina. */
  background:
    linear-gradient(100deg, rgba(28,9,20,.74) 0%, rgba(28,9,20,.36) 46%, rgba(28,9,20,.06) 80%),
    linear-gradient(205deg, rgba(1,164,164,.22) 0%, rgba(1,164,164,0) 56%),
    linear-gradient(25deg, rgba(215,0,96,.22) 0%, rgba(215,0,96,0) 62%);
}
.page-hero .wrap { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 76px; }
.page-hero .eyebrow { color: var(--keltainen); }
.page-hero h1 {
  font-size: clamp(44px, 7.4vw, 88px); margin-top: 16px; max-width: 16ch;
  text-shadow: 0 2px 22px rgba(24,6,16,.45);
}
.page-hero p.lead {
  margin-top: 22px; max-width: 54ch;
  font-family: var(--f-lead); font-style: italic; font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.45; color: rgba(255,255,255,.92);
  text-shadow: 0 1px 14px rgba(24,6,16,.5);
}
.page-hero .deco {
  position: absolute; right: -110px; top: -110px; width: 460px; height: 460px;
  opacity: .1; pointer-events: none;
}

/* ---------------- sections ---------------- */
section { padding: 92px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.wide { max-width: 900px; }
.section-head h2 { font-size: clamp(38px, 5.6vw, 62px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--muted); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------------- arvot: ei laatikoita, vaan numeroitu editorial-lista ---------------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 44px; }
.value-item { position: relative; }
.value-item:nth-child(1) { --accent: var(--turquoise); }
.value-item:nth-child(2) { --accent: var(--magenta); }
.value-item:nth-child(3) { --accent: var(--oranssi); }

/* Numero ja viiva samalla rivillä: yksi elementti, ei kaksi irrallista */
.vi-top { display: flex; align-items: center; margin-bottom: 22px; }
.vi-top .num {
  flex: none;
  font-family: var(--f-lead); font-style: italic; font-weight: 700;
  font-size: 46px; line-height: 1; letter-spacing: -.02em;
  color: var(--accent);
}
.vi-top .rule { flex: 1 1 auto; height: 2px; background: #D8D2D6; border-radius: 2px; }

.value-item h3 { font-size: 23px; margin-bottom: 10px; }
.value-item p { color: var(--muted); font-size: 16.5px; max-width: 34ch; }

/* ---------------- path cards ---------------- */
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.paths.three { grid-template-columns: repeat(3, 1fr); }
.path-card {
  position: relative; border-radius: var(--r-lg); padding: 36px 32px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; text-decoration: none; color: var(--on-dark);
  transition: transform .2s, box-shadow .2s;
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.path-card:hover .go span { text-decoration: underline; }
.path-card::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Valokuvalliset kortit: kuva pohjalla, brändigradientti sen päällä läpikuultavana */
.path-card > img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.path-card.has-photo:hover > img { transform: scale(1.04); }
.path-card.has-photo::before { opacity: .08; }
/* Kevyemmän värikalvon kanssa teksti tarvitsee oman pohjan, ei koko kuvan peittoa. */
.path-card.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,5,12,.10) 0%, rgba(18,5,12,.38) 46%, rgba(18,5,12,.80) 100%);
}
/* Tehosteväri siirtyy kuvan päältä tekstielementteihin. */
.path-card.c-violet { --kortti: #FF7EB8; }
.path-card.c-teal   { --kortti: #4FE3E3; }
.path-card.c-orange { --kortti: #FFC072; }
.path-card.c-blue   { --kortti: #78D2F5; }
.path-card.c-lime   { --kortti: #B9E877; }
.path-card .tag { color: var(--kortti, #fff); }
.path-card .go { color: var(--kortti, #fff); }
.path-card .go svg { color: inherit; }
.path-card.has-photo h3 { text-shadow: 0 2px 14px rgba(10,2,8,.55); }
.path-card.has-photo p  { text-shadow: 0 1px 10px rgba(10,2,8,.5); }
.path-card .tag, .path-card h3, .path-card p, .path-card .go { z-index: 2; }
.path-card .kortti-rule {
  position: relative; z-index: 2; display: block;
  width: 44px; height: 3px; border-radius: 2px;
  background: var(--kortti, #fff); margin-bottom: 15px;
}
.path-card.c-violet::before   { background: linear-gradient(155deg, var(--violet-deep), #7A2050 90%); }
.path-card.c-teal::before     { background: linear-gradient(155deg, #024E4E, var(--turquoise) 90%); }
.path-card.c-orange::before   { background: linear-gradient(155deg, #8A4E05, var(--oranssi) 92%); }
.path-card.c-blue::before     { background: linear-gradient(155deg, #05506A, var(--sininen) 92%); }
.path-card.c-lime::before     { background: linear-gradient(155deg, #2D5A10, var(--lime) 92%); }
.path-card .tag {
  position: relative; font-family: var(--f-label); font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-bottom: 9px;
}
/* Korttien otsikot samalla display-äänellä kuin h1/h2: Omnes Narrow Bold Italic */
.path-card h3 {
  position: relative; color: inherit;
  font-family: var(--f-lead); font-style: italic; font-weight: 700;
  font-size: 34px; line-height: 1.02; letter-spacing: -.01em;
}
.path-card p { position: relative; margin-top: 10px; font-size: 15.5px; color: rgba(255,255,255,.84); max-width: 34ch; }
.path-card .go {
  position: relative; margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-label); font-weight: 700; font-size: 15px;
}

/* ---------------- prose ---------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 20px; }
.prose h3 { font-size: 25px; margin-top: 40px; }
.prose h4 { font-size: 18px; margin-top: 30px; letter-spacing: 0; }
.prose p { color: var(--ink); }
.prose ul { margin: 0; padding-left: 22px; color: var(--ink); }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--magenta); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ---------------- pull quote ---------------- */
.pull {
  border-left: 3px solid var(--magenta); padding: 4px 0 4px 26px;
  font-family: var(--f-lead); font-style: italic; font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.35; color: var(--ink);
}

/* ---------------- staff ---------------- */
.staff-group + .staff-group { margin-top: 56px; }
.staff-group > h3 {
  font-family: var(--f-label); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--magenta);
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.staff-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 20px 18px; display: flex; gap: 14px; align-items: flex-start;
}
.staff-card .av {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-label); font-weight: 700; font-size: 16px; color: #fff; letter-spacing: .01em;
}
.staff-card > span:last-child { display: block; min-width: 0; }
.staff-card .nm { display: block; font-family: var(--f-label); font-weight: 700; font-size: 16.5px; line-height: 1.25; }
.staff-card .rl { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); line-height: 1.4; }



/* ---------------- henkilökunnan ryhmäkuva ---------------- */
.ryhmakuva { margin: 0; }
.ryhmakuva img {
  width: 100%; height: auto; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); display: block;
}
.ryhmakuva figcaption {
  margin-top: 14px; font-size: 15px; color: var(--muted); text-align: center;
}

/* ---------------- henkilökortit ---------------- */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.p-card {
  position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 3 / 4; box-shadow: var(--shadow); background: var(--surface-2);
}
.p-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.p-card:hover img { transform: scale(1.045); }
/* Ei liukuväriä: se synkensi muotokuvat turhaan. Teksti erottuu
   varjostuksella, koska kuvien alaosa on tummaa vaatetta. */
.p-card figcaption { position: absolute; left: 20px; right: 16px; bottom: 16px; z-index: 2; color: #fff; }
.p-nimi {
  display: block; font-family: var(--f-lead); font-style: italic; font-weight: 700;
  font-size: 21px; line-height: 1.05; letter-spacing: -.01em;
  text-shadow: 0 1px 3px rgba(20,5,12,.55), 0 2px 16px rgba(20,5,12,.45);
}
.p-rooli {
  display: block; margin-top: 5px; font-size: 14.5px; line-height: 1.3; color: #fff;
  text-shadow: 0 1px 3px rgba(20,5,12,.6), 0 2px 12px rgba(20,5,12,.45);
}

/* ---------------- sivuhero taustavideolla ---------------- */
.page-hero.has-video .hero-media { position: absolute; inset: 0; overflow: hidden; background: var(--violet-deep); }
.page-hero.has-video .hero-media iframe, .hero-media video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; min-width: 177.78vh; min-height: 56.25vw;
  max-width: none; border: 0; pointer-events: none;
}
.page-hero.has-video .hero-media::after {
  content: ""; position: absolute; inset: 0;
  /* Kevyt sävy koko kuvan päälle + tummennus vain sinne missä teksti on,
     jotta video näkyy mutta otsikko pysyy luettavana. */
  background:
    linear-gradient(100deg, rgba(28,9,20,.70) 0%, rgba(28,9,20,.32) 44%, rgba(28,9,20,.04) 78%),
    linear-gradient(205deg, rgba(1,164,164,.20) 0%, rgba(1,164,164,0) 56%),
    linear-gradient(25deg, rgba(215,0,96,.20) 0%, rgba(215,0,96,0) 62%);
}

/* ---------------- price table ---------------- */
.price-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 30px 26px; }
.price-block + .price-block { margin-top: 18px; }
.price-block h3 { font-size: 21px; margin-bottom: 4px; }
.price-block .note { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px;
}
.price-row:first-of-type { border-top: none; }
.price-row .amt { font-family: var(--f-label); font-weight: 700; white-space: nowrap; color: var(--magenta); }

/* ---------------- events ---------------- */
.events-list { display: flex; flex-direction: column; }
.event-row {
  display: grid; grid-template-columns: 104px 1fr auto; gap: 22px; align-items: center;
  padding: 20px 2px; border-bottom: 1px solid var(--line);
}
.event-row:first-child { border-top: 1px solid var(--line); }
.event-date { font-family: var(--f-label); font-weight: 700; line-height: 1.05; }
.event-date .day { font-size: 29px; display: block; color: var(--magenta); }
.event-date .rest { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.event-title { font-family: var(--f-label); font-weight: 700; font-size: 17.5px; }
.event-place { margin-top: 3px; font-size: 15px; color: var(--muted); }
.event-time { font-family: var(--f-label); font-weight: 700; font-size: 15px; color: var(--turquoise); white-space: nowrap; }

/* ---------------- stage / premieres ---------------- */
.stage-strip { background: var(--surface-2); }
.stage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 15px; }
/* Kaksi riviä vain työpöydällä; kapeammilla näytöillä neljä uusinta riittää. */
@media (max-width: 1000px) { .stage-grid .stage-tile:nth-child(n+5) { display: none; } }
.stage-tile { position: relative; display: block; text-decoration: none; }
.stage-tile .shot { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); background: var(--violet-deep); }
.stage-tile .fill { position: absolute; inset: 0; }
.stage-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.stage-tile:hover .shot img { transform: scale(1.04); }
.stage-tile .play { position: absolute; right: 11px; bottom: 9px; z-index: 2; }
.stage-tile .play span {
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s, opacity .18s;
  opacity: .92;
}
@keyframes play-heilahdus {
  0%   { transform: scale(1)    rotate(0deg); }
  28%  { transform: scale(1.22) rotate(-11deg); }
  52%  { transform: scale(1.12) rotate(8deg); }
  76%  { transform: scale(1.18) rotate(-4deg); }
  100% { transform: scale(1.14) rotate(0deg); }
}
.stage-tile:hover .play span {
  opacity: 1;
  animation: play-heilahdus .42s cubic-bezier(.34,1.56,.64,1) both;
}
@media (prefers-reduced-motion: reduce) {
  .stage-tile:hover .play span { animation: none; transform: scale(1.1); }
}
.stage-tile .play svg {
  width: 19px; height: 19px; margin: 0;
  /* Valkoinen kolmio kantaa vaihtelevien kuvien päällä paremmin kuin brändiväri. */
  fill: #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.55));
}
.stage-tile .cap {
  margin-top: 11px; color: var(--ink);
  font-family: var(--f-label); font-size: 13.5px; font-weight: 700; line-height: 1.35;
}
.stage-footer { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.stage-footer .label { font-family: var(--f-label); font-size: 16px; color: var(--muted); }
.stage-footer .label b { color: var(--ink); font-weight: 700; }


/* Friday Premieres: hover-video ruudun sisällä */
.stage-tile .tile-video {
  position: absolute; top: 50%; left: 50%;
  width: 100%; height: 100%; max-width: none; border: 0; z-index: 1; pointer-events: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0; transition: opacity .45s ease;
}
.stage-tile .tile-video.nakyy { opacity: 1; }
.stage-tile.soi .play { opacity: 0; }
.stage-tile .play { transition: opacity .25s; }

/* ---------------- dark band ---------------- */
.band {
  background: linear-gradient(135deg, var(--violet-deep), #7A1E4E 55%, var(--magenta));
  border-radius: 32px; padding: 60px; color: var(--on-dark);
}
.band .eyebrow { color: var(--keltainen); }
.band h2 { color: #fff; font-size: clamp(34px, 4.8vw, 54px); margin-top: 14px; }
.band p.lead { margin-top: 16px; color: rgba(255,255,255,.85); font-size: 16.5px; max-width: 46ch; }
.band-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 52px; align-items: center; }






.insta-handle {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  padding: 9px 18px 9px 9px; border-radius: 100px;
}
.insta-handle .av {
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--magenta); flex: none;
}
.insta-handle .av svg { width: 20px; height: 20px; }
/* Lohko on itse linkki: erillinen "Seuraa Instagramissa" -painike poistettiin. */
.insta-handle { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.insta-handle:hover { transform: translateY(-2px); }
.insta-handle > span:last-child { display: block; }
.insta-handle strong { display: block; font-family: var(--f-label); font-weight: 700; font-size: 15px; }
.insta-handle strong + span { display: block; font-size: 13px; opacity: .78; }

.insta-cta {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--magenta);
  font-family: var(--f-label); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 100px; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.insta-cta svg { width: 16px; height: 16px; flex: none; }
.insta-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--surface-2); border-radius: 32px; padding: 60px; text-align: center; }
.cta-band h2 { font-size: clamp(34px, 5.2vw, 58px); margin-top: 14px; }
.cta-band p { margin: 16px auto 0; max-width: 48ch; color: var(--muted); font-size: 17px; }
.cta-band .hero-actions { justify-content: center; margin-top: 28px; }

/* ---------------- info cards ---------------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px; }
.info-card h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); margin-bottom: 14px; }
.info-card p, .info-card a { display: block; font-size: 16px; line-height: 1.6; text-decoration: none; }
.info-card a:hover { color: var(--magenta); }
.info-card .big { font-family: var(--f-label); font-weight: 700; font-size: 19px; }

/* ---------------- steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px 26px 26px; }
.step::before {
  counter-increment: s; content: counter(s);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--magenta); color: #fff;
  font-family: var(--f-label); font-weight: 700; font-size: 17px;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------------- opintopolku: portaat ---------------- */
.steps.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: none; }
.step-o { position: relative; padding-top: 22px; border-top: 2px solid var(--line-strong); }
.step-o:nth-child(1) { border-top-color: var(--oranssi); }
.step-o:nth-child(2) { border-top-color: var(--keltainen); }
.step-o:nth-child(3) { border-top-color: var(--magenta); }
.step-o:nth-child(4) { border-top-color: var(--violet-deep); }
.step-o .st-label {
  display: block; font-family: var(--f-label); font-weight: 700;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 8px;
}
.step-o h3 { font-size: 22px; margin-bottom: 6px; }
.step-o .st-meta {
  font-family: var(--f-label); font-weight: 700; font-size: 14px;
  color: var(--magenta); margin-bottom: 10px;
}
.step-o p { color: var(--muted); font-size: 15.5px; }
.note-line {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted-2); max-width: 72ch;
}

/* ---------------- arvioinnin työkalukortit ---------------- */
.tool-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 30px 28px;
}
.tool-card h3 { font-size: 22px; margin-bottom: 10px; color: var(--magenta); }
.tool-card p { color: var(--ink); font-size: 16px; }

/* ---------------- footer ---------------- */
footer.site { border-top: 1px solid var(--line); padding: 60px 0 36px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 38px; }
.foot-brand .word { font-family: var(--f-label); font-weight: 700; font-size: 19px; }
.foot-brand p { margin-top: 13px; color: var(--muted); font-size: 15px; max-width: 32ch; }
.foot-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--foot-accent); margin-bottom: 15px; }
.foot-col a, .foot-col p { display: block; text-decoration: none; color: var(--ink); font-size: 15.5px; margin-bottom: 9px; line-height: 1.5; }
.foot-col a:hover { color: var(--magenta); }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  color: var(--foot-accent);
  display: flex; align-items: center; justify-content: center; margin: 0;
  transition: border-color .15s, color .15s;
}
.foot-social a:hover { border-color: var(--magenta); color: var(--magenta); }
.foot-social svg { width: 17px; height: 17px; }
.foot-bottom {
  margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13.5px; color: var(--muted-2);
}

/* ---------------- testiversion banneri ---------------- */
.testbar {
  background: var(--violet-deep); color: #fff;
  font-family: var(--f-label); font-weight: 700; font-size: 13px; letter-spacing: .04em;
  text-align: center; padding: 10px 26px;
}
.testbar span { opacity: .78; font-weight: 400; }

/* ---------------- responsive ---------------- */
@media (max-width: 940px) {
  nav.primary { display: none; }
  .nav-row > .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .hero-inner { padding-block: 34px 56px; }   /* ei lyhennemuotoa — .wrap:n sivumarginaalit säilyvät */
  .hero h1 { font-size: clamp(62px, 17vw, 78px); }
  .values, .info-grid, .steps, .steps.four { grid-template-columns: 1fr; }
  .paths, .paths.three { grid-template-columns: 1fr; }
  .path-card { min-height: 260px; }
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid, .p-grid { grid-template-columns: repeat(2, 1fr); }
  .band, .cta-band { padding: 38px 24px; border-radius: 22px; }
  .band-split { grid-template-columns: 1fr; gap: 34px; }
  

  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 62px 0; }
  .page-hero .wrap { padding-top: 56px; padding-bottom: 52px; }
  .event-row { grid-template-columns: 60px 1fr; }
  .event-time { grid-column: 2; }
  .event-date .day { font-size: 22px; }
}
@media (max-width: 560px) {
  .staff-grid { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-nimi { font-size: 17px; }
  .p-rooli { font-size: 13px; }
  .announce { flex-direction: column; text-align: center; border-radius: var(--r-lg); padding: 22px; margin-top: -26px; }
  .announce p { flex: 1 1 auto; }
  .foot-grid { grid-template-columns: 1fr; }
}


/* ---------------- videon lightbox ---------------- */
.modaali {
  position: fixed; inset: 0; z-index: 999;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(20, 5, 14, .82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s ease;
}
.modaali.auki { display: flex; opacity: 1; }
.modaali-sisus {
  position: relative; width: min(1100px, 100%);
  transform: translateY(10px) scale(.985);
  transition: transform .26s cubic-bezier(.2,.8,.3,1);
}
.modaali.auki .modaali-sisus { transform: none; }
.modaali-kehys {
  position: relative; aspect-ratio: 16/9; width: 100%;
  border-radius: var(--r-md); overflow: hidden;
  background: #000; box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.modaali-kehys iframe { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border: 0; }
.modaali-otsikko {
  margin-top: 14px; color: #fff; font-family: var(--f-label);
  font-size: 15px; font-weight: 700; text-align: left;
}
.modaali-sulje {
  position: absolute; top: -46px; right: 0;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.15); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.modaali-sulje:hover { background: rgba(255,255,255,.28); }
.modaali-sulje svg { width: 17px; height: 17px; }
.modaali-vihje { margin-top: 6px; color: rgba(255,255,255,.55); font-size: 13px; }
body.modaali-auki { overflow: hidden; }

@media (max-width: 700px) {
  .modaali { padding: 16px; }
  .modaali-sulje { top: -42px; }
}


.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.insta-grid .tile { aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; background: rgba(255,255,255,.12); }
.insta-grid .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.insta-grid .tile:hover img { transform: scale(1.05); }

/* ---------------- Opastussivu ---------------- */
.announce-tyomaa .dot { background: var(--oranssi, #F18D05); }
.announce-tyomaa + .announce { margin-top: 10px; }

.opastus-faktat {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.opastus-faktat .fakta {
  border-top: 2px solid var(--accent); padding-top: 18px;
}
.opastus-faktat .fakta h3 {
  font-family: var(--f-label); font-weight: 700; font-size: 17px;
  margin-bottom: 8px; color: var(--ink);
}
.opastus-faktat .fakta p { color: var(--muted); font-size: 16px; line-height: 1.6; }

.opastus-kartta {
  margin: 0; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
}
.opastus-kartta img { display: block; width: 100%; height: auto; }

/* Opastekylttien kuvasarja: numero kertoo järjestyksen ilman erillistä listaa. */
.askeleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.askel { position: relative; margin: 0; }
.askel img {
  /* height:auto on pakollinen — muuten HTML:n height-attribuutti voittaa aspect-ration */
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-md); box-shadow: var(--shadow);
}
.askel .numero {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--magenta); color: #fff;
  font-family: var(--f-label); font-weight: 700; font-size: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.askel figcaption {
  margin-top: 11px; font-family: var(--f-label);
  font-weight: 700; font-size: 14.5px; color: var(--ink);
}

.opastus-video {
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow); background: #000;
}
.opastus-video video { display: block; width: 100%; height: auto; max-width: none; }

@media (max-width: 900px) {
  .opastus-faktat { grid-template-columns: 1fr; gap: 20px; }
  .askeleet { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 520px) {
  .askeleet { grid-template-columns: 1fr 1fr; gap: 10px; }
  .askel figcaption { font-size: 13px; }
}

/* Aaltosymbolit korttien otsikoiden yllä (lähde: IG stories icons). */
.vi-top .aalto {
  /* Sama leveys kaikille — aallon korkeus saa vaihdella, se on sisältöä. */
  width: 58px; height: auto; max-height: 40px;
  object-fit: contain; object-position: left center;
  margin-right: 14px; flex: none;
}
@media (max-width: 700px) { .vi-top .aalto { width: 48px; } }


/* ---------------- Hero: teksti saapuu riveittäin ---------------- */
/* Ohjaa katseen otsikkoon sivulle tultaessa. Rivit nousevat peräkkäin,
   ja alaosa jatkaa saman rytmin. */
@keyframes hero-rivi {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero h1 .rivi {
  display: block;
  opacity: 0;
  animation: hero-rivi .72s cubic-bezier(.2,.75,.25,1) both;
}
.hero h1 .rivi:nth-child(1) { animation-delay: .10s; }
.hero h1 .rivi:nth-child(2) { animation-delay: .22s; }
.hero h1 .rivi:nth-child(3) { animation-delay: .34s; }
.hero h1 .rivi:nth-child(4) { animation-delay: .46s; }
.hero h1 .rivi:nth-child(5) { animation-delay: .58s; }
.hero .hero-sub    { animation: hero-rivi .7s cubic-bezier(.2,.75,.25,1) .74s both; }
.hero .hero-actions{ animation: hero-rivi .7s cubic-bezier(.2,.75,.25,1) .88s both; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .rivi, .hero .hero-sub, .hero .hero-actions { animation: none; opacity: 1; transform: none; }
}

/* ---------------- Ilmoituslaatikot: huomio ensin, sisältö sitten ---------------- */
/* Laatikot ovat sivulle tultaessa esillä, mutta väistyvät kun lukija lähtee
   alaspäin — ja palaavat kun sivu ladataan uudelleen tai palataan ylös. */
.announce-wrap {
  transition: opacity .45s ease, transform .45s ease, max-height .5s ease, margin .45s ease;
  overflow: hidden;
}
.announce-wrap.piiloon {
  opacity: 0;
  transform: translateY(-14px);
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
}
