/* Training Ground – sivuston tyylit. */
@layer reset, base, components, pages, variant, motion;
@font-face{font-family:"TG Sans";font-style:normal;font-display:swap;font-weight:400 700;font-stretch:75% 100%;src:url("../fonts/instrument-sans-wdth.woff2") format("woff2");}
@font-face{font-family:"TG Mono";font-style:normal;font-display:swap;font-weight:500;src:url("../fonts/ibm-plex-mono-500.woff2") format("woff2");}
@layer base {
:root{--paper-fixed:#f9faf6;--ink-fixed:#1c221b;--bg:#f0f2ec;--bg-2:#e2e7de;--paper:#f9faf6;--ink:#1c221b;--ink-soft:#454d44;
--sage:#657363;--sage-deep:#4e5a4c;--on-sage:#f9faf6;
--accent:#2f382e;--accent-hover:#232a22;--on-accent:#f9faf6;
--btn-light-bg:#e2e8df;--btn-light-hover:#f9faf6;--on-light:#232a22;
--forest:#2f382e;--wall:#232a22;--selection:#c9d2c6;
--line:rgb(28 34 27 / .16);--line-sage:rgb(249 250 246 / .32);
--field-bg:#f0f2ec;--field-line:rgb(28 34 27 / .32);--field-line-hover:rgb(28 34 27 / .55);
--err:#9e2219;--err-bg:#fbf1ee;--btn-ink-bg:#657363;--btn-ink-fg:#f9faf6;--btn-ink-hover:#4e5a4c;
--shadow:22 30 22;--wordmark-ink:#f0f2ec;color-scheme:light;--chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231c221b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");--logo-wordmark:url("../img/logo-wordmark.webp");--logo-full:url("../img/logo-full.webp");}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--bg:#131612;--bg-2:#1f241d;--paper:#1a1e18;--ink:#eef1ea;--ink-soft:#b3bab0;
--sage:#4f5c4d;--sage-deep:#a9b8a6;--on-sage:#f4f6f0;
--accent:#c9d6c4;--accent-hover:#e2e8df;--on-accent:#1c221b;
--btn-light-bg:#e2e8df;--btn-light-hover:#f9faf6;--on-light:#1c221b;
--forest:#232a22;--wall:#1a1f19;--selection:#4f5c4d;
--line:rgb(238 241 234 / .14);--line-sage:rgb(244 246 240 / .26);
--field-bg:#131612;--field-line:rgb(238 241 234 / .3);--field-line-hover:rgb(238 241 234 / .55);
--err:#ff9a8f;--err-bg:#3a1d1a;--btn-ink-bg:#657363;--btn-ink-fg:#f4f6f0;--btn-ink-hover:#74836f;
--shadow:0 0 0;--wordmark-ink:#131612;color-scheme:dark;--chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23eef1ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");}}
:root[data-theme="dark"]{--bg:#131612;--bg-2:#1f241d;--paper:#1a1e18;--ink:#eef1ea;--ink-soft:#b3bab0;
--sage:#4f5c4d;--sage-deep:#a9b8a6;--on-sage:#f4f6f0;
--accent:#c9d6c4;--accent-hover:#e2e8df;--on-accent:#1c221b;
--btn-light-bg:#e2e8df;--btn-light-hover:#f9faf6;--on-light:#1c221b;
--forest:#232a22;--wall:#1a1f19;--selection:#4f5c4d;
--line:rgb(238 241 234 / .14);--line-sage:rgb(244 246 240 / .26);
--field-bg:#131612;--field-line:rgb(238 241 234 / .3);--field-line-hover:rgb(238 241 234 / .55);
--err:#ff9a8f;--err-bg:#3a1d1a;--btn-ink-bg:#657363;--btn-ink-fg:#f4f6f0;--btn-ink-hover:#74836f;
--shadow:0 0 0;--wordmark-ink:#131612;color-scheme:dark;--chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23eef1ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");}
}
/* ==========================================================================
   Training Ground Vantaa — "Aurinkoinen sali", viimeistelty
   Kerma pohjana, salvianvihreät lohkot, yksi oranssi toimintonappi.
   Kerrokset: reset → base → components → pages → variant (versio B) → motion
   ========================================================================== */
@layer reset, base, components, pages, variant, motion;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { margin: 0; }
  img, picture, svg { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
  ul[class], ol[class], nav ul, .footer-col ul { list-style: none; margin: 0; padding: 0; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    --font: "TG Sans", "Helvetica Neue", Arial, sans-serif;
    --mono: "TG Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --gutter: 16px;
    --radius: 28px;
    --radius-sm: 18px;
    --max: 1360px;
    --header-h: 68px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --display-stretch: 100%;
    --display-weight: 600;
    --display-case: none;
    --display-track: -0.03em;
    --display-lh: 1.04;
  }
  @media (min-width: 900px) {
    :root { --gutter: 24px; --radius: 32px; --header-h: 80px; }
  }

  html {
    scroll-padding-top: calc(var(--header-h) + 16px);
    scrollbar-color: var(--sage) var(--bg);
    scrollbar-gutter: stable;
    hanging-punctuation: first last;
    accent-color: var(--sage);
    interpolate-size: allow-keywords;
  }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    font-weight: 400;
    font-synthesis: none;
    overflow-x: clip;
    caret-color: var(--sage);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 84px;
  }
  @media (min-width: 900px) { body { font-size: 1.125rem; } }
  @media (min-width: 1200px) { body { padding-bottom: 0; } }

  ::selection { background: var(--selection); color: var(--ink); }

  a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }

  :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
  .on-dark :focus-visible, .on-sage :focus-visible { outline-color: var(--paper-fixed); }

  h1, h2, h3, h4 { font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
  p { text-wrap: pretty; }
  p + p { margin-top: 1em; }
  h1:focus { outline: none; }
  address { font-style: normal; }

  .wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

  .mono { font-family: var(--mono); font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }

  .h-xl, .h-lg, .page-hero h1 {
    font-stretch: var(--display-stretch);
    font-weight: var(--display-weight);
    text-transform: var(--display-case);
    letter-spacing: var(--display-track);
    line-height: var(--display-lh);
  }
  .h-lg { font-size: clamp(2.125rem, 1.5rem + 2.8vw, 4rem); }
  .h-md { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); letter-spacing: -0.02em; line-height: 1.15; }
  .lead { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); line-height: 1.5; letter-spacing: -0.005em; }
  .measure { max-width: 36em; }
}

@layer components {
  /* --- Skip link ---------------------------------------------------------- */
  .skip {
    position: fixed; left: 12px; top: -80px; z-index: 100;
    background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
    font-weight: 600; text-decoration: none;
  }
  .skip:focus { top: 12px; }

  /* --- Buttons ------------------------------------------------------------ */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
    min-height: 52px; padding: 0 1.5em;
    border-radius: 999px; border: 1.5px solid transparent;
    font-family: var(--font); font-size: 0.875rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1;
    text-decoration: none; cursor: pointer; text-align: center;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  }
  .btn .icon { font-size: 1.15em; transition: transform .3s var(--ease); }
  .btn:hover .icon { transform: translateX(3px); }
  .btn:hover .icon.out { transform: translate(2px, -2px); }
  .btn:active { transform: scale(0.98); }
  .btn-primary { background: var(--accent); color: var(--on-accent); }
  .btn-primary:hover { background: var(--accent-hover); }
  /* Tummalla ja vihreällä pohjalla päänappi on vaalea vihreä */
  .on-sage .btn-primary, .on-dark .btn-primary, .on-forest .btn-primary { background: var(--btn-light-bg); color: var(--on-light); }
  .on-sage .btn-primary:hover, .on-dark .btn-primary:hover, .on-forest .btn-primary:hover { background: var(--btn-light-hover); }
  .btn-ink { background: var(--btn-ink-bg); color: var(--btn-ink-fg); }
  .btn-ink:hover { background: var(--btn-ink-hover); }
  .btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
  .btn-line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .on-dark .btn-line, .on-sage .btn-line { color: var(--paper-fixed); }
  .on-dark .btn-line:hover, .on-sage .btn-line:hover { background: var(--paper-fixed); color: var(--ink-fixed); border-color: var(--paper-fixed); }
  .btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  @media (max-width: 599px) { .btn { letter-spacing: 0.035em; padding: 0 1.15em; } }

  .text-link { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; text-decoration: underline; text-underline-offset: 0.3em; }
  .text-link .icon { transition: transform .3s var(--ease); }
  .text-link:hover .icon { transform: translateX(3px); }

  /* --- Logo (maski: väri tulee teemasta) ---------------------------------- */
  .logo { display: block; background: currentColor; -webkit-mask: var(--logo-src) center / contain no-repeat; mask: var(--logo-src) center / contain no-repeat; }
  .logo-wordmark { --logo-src: var(--logo-wordmark); aspect-ratio: 600 / 221; }
  .logo-full { --logo-src: var(--logo-full); aspect-ratio: 495 / 202; }

  /* --- Header ------------------------------------------------------------- */
  .site-header {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    view-transition-name: site-header;
  }
  .site-header.is-scrolled { border-bottom-color: var(--line); }
  @supports (animation-timeline: scroll()) {
    .site-header { animation: header-line linear both; animation-timeline: scroll(root); animation-range: 0 64px; }
    @keyframes header-line { to { border-bottom-color: var(--line); } }
  }
  .header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
  .brand { flex: none; border-radius: 6px; color: var(--ink); }
  .brand .logo { height: 34px; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
  .schedule-link { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; color: var(--ink-soft); padding: 8px 2px; }
  .schedule-link:hover, .schedule-link[aria-current="page"] { color: var(--ink); text-decoration: underline; }
  .schedule-link .icon { font-size: 1.1em; }
  .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 999px;
    border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-size: 20px;
  }
  .menu-toggle .i-close { display: none; }
  .menu-toggle[aria-expanded="true"] .i-open { display: none; }
  .menu-toggle[aria-expanded="true"] .i-close { display: block; }
  @media (max-width: 380px) { .schedule-link span { display: none; } }

  /* Mobiilivalikko: Popover API (top layer, Esc ja ulkoklikkaus sulkevat) */
  .mobile-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; width: 100%; max-height: calc(100dvh - var(--header-h));
    overflow: auto; border: 0; padding: 8px var(--gutter) 24px;
    background: var(--bg); color: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgb(var(--shadow) / .45);
    opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .35s var(--ease), overlay .35s allow-discrete, display .35s allow-discrete;
  }
  .mobile-menu:popover-open { opacity: 1; transform: none; }
  @starting-style { .mobile-menu:popover-open { opacity: 0; transform: translateY(-8px); } }
  .mobile-menu::backdrop { background: rgb(var(--shadow) / .18); }
  .mobile-menu ul { display: grid; }
  .mobile-menu li a {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 16px 2px; border-bottom: 1px solid var(--line);
    font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; text-decoration: none;
  }
  .mobile-menu li a[aria-current="page"] { color: var(--sage-deep); }
  .mobile-menu .btn { width: 100%; margin-top: 20px; }

  @media (min-width: 900px) {
    .header-cta { display: inline-flex; min-height: 46px; }
    .brand .logo { height: 40px; }
  }
  @media (min-width: 1200px) {
    .header-inner { gap: 24px; }
    .main-nav { display: block; }
    .main-nav ul { display: flex; gap: 2px; }
    .main-nav > ul > li > a, .nav-sub-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; border: 0; background: transparent; color: var(--ink); cursor: pointer; line-height: inherit; }
    .main-nav > ul > li > a:hover, .nav-sub-toggle:hover, .nav-sub-toggle[aria-expanded="true"] { background: var(--bg-2); }
    .main-nav > ul > li > a[aria-current="page"], .nav-sub-toggle.is-current { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
    .nav-sub-toggle .icon { font-size: .95em; transition: transform .3s var(--ease); }
    .nav-sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
    .has-sub { position: relative; }
    .menu-toggle, .mobile-menu { display: none; }
    .schedule-link { display: none; }
  }

  /* Pudotusvalikko: Popover API, sijainti lasketaan napista */
  .subnav {
    position: fixed; inset: auto; margin: 0; padding: 8px; min-width: 290px;
    border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink);
    box-shadow: 0 28px 60px -28px rgb(var(--shadow) / .5), 0 2px 8px rgb(var(--shadow) / .08);
    opacity: 0; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .3s var(--ease), overlay .3s allow-discrete, display .3s allow-discrete;
  }
  .subnav:popover-open { opacity: 1; transform: none; }
  @starting-style { .subnav:popover-open { opacity: 0; transform: translateY(-6px); } }
  .subnav.fallback { position: absolute; top: calc(100% + 10px); left: -8px; opacity: 1; transform: none; z-index: 50; }
  .subnav ul { display: grid; gap: 2px; }
  .subnav a { display: block; padding: 11px 14px; border-radius: 13px; text-decoration: none; font-weight: 500; font-size: .9375rem; line-height: 1.3; }
  .subnav li:first-child a { font-weight: 600; }
  .subnav li:first-child { padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .subnav a:hover, .subnav a[aria-current="page"] { background: var(--bg-2); }

  /* Mobiilivalikon alakohdat */
  .mobile-menu .m-group > a { border-bottom: 0; }
  .mobile-menu .m-sub { display: grid; padding: 0 0 12px 14px; border-bottom: 1px solid var(--line); }
  .mobile-menu .m-sub a { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; padding: 9px 2px; border-bottom: 0; color: var(--ink-soft); }
  .mobile-menu .m-sub a[aria-current="page"] { color: var(--sage-deep); }

  /* --- Sticky CTA (mobiili) ---------------------------------------------- */
  .sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 30;
    min-height: 54px;
    box-shadow: 0 10px 30px -8px rgb(var(--shadow) / .45), 0 2px 6px rgb(var(--shadow) / .18);
    transition: transform .4s var(--ease), opacity .3s;
    view-transition-name: sticky-cta;
  }
  .sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  @media (min-width: 1200px) { .sticky-cta { display: none; } }

  /* --- Section scaffolding ------------------------------------------------ */
  .section { padding-block: 72px; }
  @media (min-width: 900px) { .section { padding-block: 120px; } }
  .section.tight-top { padding-top: 0; }
  .rule { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); margin-bottom: 36px; }
  @media (min-width: 900px) { .rule { margin-bottom: 64px; } }
  @media (max-width: 599px) { .rule span + span { display: none; } }

  .inset { padding-inline: var(--gutter); }
  .inset > * { max-width: calc(var(--max) + 32px); margin-inline: auto; }

  /* --- Photo card ---------------------------------------------------------- */
  .photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
  .photo img { width: 100%; height: 100%; object-fit: cover; }
  .photo figcaption {
    position: absolute; left: 12px; bottom: 12px;
    background: color-mix(in oklab, var(--paper-fixed) 92%, transparent); color: var(--ink-fixed);
    padding: 6px 12px; border-radius: 999px; font-size: .875rem; font-weight: 600; line-height: 1.3;
  }

  /* --- Check list ---------------------------------------------------------- */
  .check-list { display: grid; gap: 2px; margin: 20px 0 28px; }
  .check-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
  .tick { width: 26px; height: 26px; border-radius: 999px; background: var(--sage); color: var(--on-sage); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }

  /* --- Jump links ---------------------------------------------------------- */
  .jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
  .jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--bg-2); text-decoration: none; font-weight: 500; font-size: .9375rem; }
  .jump a:hover { background: var(--ink); color: var(--bg); }

  /* --- Sage block ---------------------------------------------------------- */
  .sage-block { background: var(--sage); color: var(--on-sage); border-radius: var(--radius); padding: 44px 22px 22px; }
  .sage-block .rule { border-top-color: var(--line-sage); color: var(--on-sage); }
  .sage-block .tick { background: var(--on-sage); color: var(--sage); }
  @media (min-width: 900px) { .sage-block { padding: 64px; } }

  /* --- Course card (data) ------------------------------------------------- */
  .course-card { background: var(--paper); color: var(--ink); border-radius: calc(var(--radius) - 8px); padding: 24px 22px 22px; box-shadow: 0 24px 50px -30px rgb(var(--shadow) / .6); }
  .course-card + .course-card { margin-top: 12px; }
  .course-card .mono { color: var(--ink-soft); }
  .course-head { margin-bottom: 14px; }
  .course-name { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 12px; }
  .course-dates { font-size: clamp(1.625rem, 1.35rem + 1.3vw, 2.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 6px 0 14px; }
  .course-period { display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 999px; padding: 6px 12px 6px 10px; font-size: .9375rem; font-weight: 500; margin-bottom: 18px; line-height: 1.35; }
  .course-period .icon { color: var(--sage-deep); }
  .course-price { color: var(--ink-soft); font-size: .9375rem; line-height: 1.5; padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: 20px; }
  .course-card .btn { width: 100%; padding: 0 1em; }
  .course-empty { font-size: 1.0625rem; }
  @media (max-width: 599px) { .course-card { padding: 20px 16px 16px; } }

  /* --- Next course chip (hero) ------------------------------------------- */
  .next-chip {
    display: inline-flex; align-items: center; gap: 10px; justify-self: start;
    padding: 8px 14px 8px 8px; border-radius: 999px; text-decoration: none;
    background: color-mix(in oklab, var(--paper-fixed) 14%, transparent);
    border: 1px solid color-mix(in oklab, var(--paper-fixed) 30%, transparent);
    font-size: .9375rem; font-weight: 500; line-height: 1.3;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .next-chip .dot { width: 28px; height: 28px; border-radius: 999px; background: var(--paper-fixed); color: var(--ink-fixed); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
  .next-chip:hover { background: color-mix(in oklab, var(--paper-fixed) 24%, transparent); }

  /* --- Steps (aito järjestys: kokeilu → kurssi → tunnit) ----------------- */
  .steps { display: grid; gap: 10px; counter-reset: step; margin-top: 40px; }
  .steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 20px; border-radius: var(--radius-sm); background: color-mix(in oklab, var(--ink-fixed) 14%, transparent); border: 1px solid var(--line-sage); }
  .steps li::before { content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 999px; background: var(--paper-fixed); color: var(--ink-fixed); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.0625rem; }
  .steps h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; align-self: center; }
  .steps p { font-size: 1rem; line-height: 1.5; }
  @media (min-width: 900px) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
    .steps li { grid-template-columns: 1fr; padding: 24px; align-content: start; }
    .steps li::before { grid-row: auto; margin-bottom: 12px; }
  }

  /* --- Price rows ---------------------------------------------------------- */
  .price-list { border-top: 1px solid var(--line); }
  .price-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .price-name { font-weight: 600; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }
  .price-meta { grid-column: 1; color: var(--ink-soft); font-size: .9375rem; line-height: 1.4; }
  .price-val { grid-column: 2; grid-row: 1 / span 2; font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
  .price-val small { font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); margin-left: 2px; }
  .on-sage .price-list, .on-sage .price-list li { border-color: var(--line-sage); }
  .on-sage .price-meta, .on-sage .price-val small { color: inherit; }

  /* --- Accordion ---------------------------------------------------------- */
  .accordion { margin-top: 28px; border-top: 1px solid var(--line); }
  .accordion details { border-bottom: 1px solid var(--line); }
  .accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
  .accordion summary::-webkit-details-marker { display: none; }
  .accordion .pm { width: 34px; height: 34px; border-radius: 999px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; transition: transform .3s var(--ease); flex: none; }
  .accordion details[open] .pm { transform: rotate(45deg); }
  .accordion .acc-body { padding: 0 0 22px; color: var(--ink-soft); max-width: 40em; }
  .accordion details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .accordion details[open]::details-content { block-size: auto; }

  /* --- Address card ------------------------------------------------------- */
  .address-card { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); padding: 18px 20px; }
  .address-card address { font-weight: 600; font-size: 1.125rem; display: flex; align-items: center; gap: 10px; }
  .address-card address .icon { color: var(--sage-deep); font-size: 1.2em; }

  /* --- Closing CTA -------------------------------------------------------- */
  .closing { display: grid; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
  .closing .photo { border-radius: 0; aspect-ratio: 4 / 3; }
  .closing .photo img { object-position: 50% 38%; }
  .closing-text { padding: 32px 22px 26px; display: grid; gap: 20px; align-content: center; }
  .closing-text h2 { font-size: clamp(2.125rem, 1.4rem + 3vw, 4rem); }
  .closing-text .btn-primary { justify-self: start; }
  .closing-meta { color: var(--ink-soft); font-size: 1rem; }
  @media (max-width: 899px) { .closing-text .btn { justify-self: stretch; } }
  @media (min-width: 900px) {
    .closing { grid-template-columns: 5fr 7fr; }
    .closing .photo { aspect-ratio: auto; min-height: 560px; }
    .closing-text { padding: 64px; gap: 28px; }
  }

  /* --- Footer ------------------------------------------------------------- */
  .site-footer { background: var(--sage); color: var(--on-sage); margin-top: 72px; padding-top: 56px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; container-type: inline-size; }
  @media (min-width: 900px) { .site-footer { margin-top: 120px; padding-top: 80px; } }
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer-grid > :nth-child(-n+2) { grid-column: 1 / -1; }
  .footer-logo { display: block; width: 190px; color: var(--on-sage); }
  .footer-col h2 { margin-bottom: 14px; color: var(--on-sage); font-weight: 500; }
  .footer-col ul { display: grid; gap: 6px; }
  .footer-col a { text-decoration: none; }
  .footer-col a:hover { text-decoration: underline; }
  .footer-col address { line-height: 1.7; }
  .footer-fine { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line-sage); }
  .footer-fine a { text-decoration: none; }
  .footer-fine a:hover { text-decoration: underline; }
  @media (min-width: 900px) {
    .footer-grid { grid-template-columns: 4fr 3fr 2fr 3fr; gap: 40px; }
    .footer-grid > :nth-child(-n+2) { grid-column: auto; }
  }
  /* Sanamerkki reunasta reunaan: konttiyksiköt ilman skriptiä */
  .wordmark {
    display: block; font-weight: 700; font-stretch: 78%; white-space: nowrap; line-height: 1;
    font-size: var(--wordmark-size, calc((100cqi - 2 * var(--gutter)) / 6.42)); letter-spacing: -0.035em;
    color: var(--wordmark-ink); margin: 28px 0 -0.19em; padding-inline: calc(var(--gutter) - .04em) 0;
    user-select: none;
  }
  @media (min-width: 900px) { .wordmark { margin-top: 40px; } }

  /* --- Forms -------------------------------------------------------------- */
  .form-wrap { background: var(--paper); border-radius: var(--radius); padding: 32px 22px 24px; }
  .form-grid { display: grid; gap: 32px; }
  .form-intro h2 { margin-bottom: 20px; }
  .form-contact .btn { margin-top: 24px; }
  .contact-list { border-top: 1px solid var(--line); }
  .contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
  .contact-list .icon { color: var(--sage-deep); font-size: 1.15em; }
  .contact-list a { font-weight: 600; text-decoration: none; }
  .contact-list a:hover { text-decoration: underline; }
  .field { display: grid; gap: 8px; margin-bottom: 20px; }
  .field label { font-weight: 600; font-size: .9375rem; }
  .field .req { color: var(--sage-deep); }
  .field input, .field select, .field textarea {
    width: 100%; font-size: 1.0625rem; color: var(--ink);
    background: var(--field-bg); border: 1.5px solid var(--field-line); border-radius: 14px;
    padding: 14px 16px; min-height: 54px;
    transition: border-color .2s, background-color .2s;
  }
  .field textarea { min-height: 140px; resize: vertical; line-height: 1.5; field-sizing: content; max-height: 420px; }
  .field select { appearance: none; padding-right: 48px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 16px center; }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--field-line-hover); }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background-color: var(--paper); }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
  .field.has-error input, .field.has-error textarea { border-color: var(--err); background-color: var(--err-bg); }
  .field-error { color: var(--err); font-size: .9375rem; font-weight: 500; display: none; }
  .field.has-error .field-error { display: block; }
  .form-row { display: grid; gap: 0 16px; }
  @media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
  .form-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 8px; }
  .form-foot .btn { min-width: 180px; }
  .privacy { font-size: .9375rem; color: var(--ink-soft); max-width: 30em; }
  .form-status { display: none; margin-top: 20px; border-radius: var(--radius-sm); padding: 18px 20px; font-weight: 600; gap: 12px; align-items: flex-start; }
  .form-status .icon { margin-top: .25em; font-size: 1.2em; }
  .form-status.ok { display: flex; background: var(--sage); color: var(--on-sage); }
  .form-status small { display: block; font-weight: 400; opacity: .85; margin-top: 4px; font-size: .875rem; }
  .form-status:focus { outline: none; }
  @media (min-width: 900px) {
    .form-wrap { padding: 64px; }
    .form-grid { grid-template-columns: 5fr 7fr; gap: 28px 80px; align-items: start; }
    .form-intro { grid-column: 1; grid-row: 1; }
    .form-contact { grid-column: 1; grid-row: 2; }
    .form-grid form { grid-column: 2; grid-row: 1 / span 2; }
  }

  /* --- Split (teksti + kuva) ---------------------------------------------- */
  .split { display: grid; gap: 36px; }
  .split h2 { margin-bottom: 28px; }
  .split .photo { aspect-ratio: 4 / 5; }
  @media (min-width: 900px) {
    .split { grid-template-columns: 6fr 1fr 5fr; align-items: start; }
    .split > :first-child { grid-column: 1; }
    .split > :last-child { grid-column: 3; }
    .split.flip > :first-child { grid-column: 3; grid-row: 1; }
    .split.flip > :last-child { grid-column: 1; grid-row: 1; }
    .split.center { align-items: center; }
  }

  /* --- Page hero (alasivut) ---------------------------------------------- */
  .page-hero { padding-top: 28px; }
  .page-hero-grid { display: grid; gap: 28px; }
  .page-hero h1 { font-size: clamp(3.25rem, 2rem + 7vw, 8.5rem); --display-track: -0.05em; letter-spacing: var(--display-track); line-height: .92; margin-bottom: 22px; }
  .page-hero h1.long { font-size: clamp(2.75rem, 1.6rem + 5vw, 6rem); line-height: .96; }
  .page-hero .lead { max-width: 28em; }
  .page-hero .photo { aspect-ratio: 4 / 3; }
  @media (min-width: 900px) {
    .page-hero { padding-top: 56px; }
    .page-hero-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; }
    .page-hero .photo { aspect-ratio: 7 / 5; }
  }
}

@layer pages {
  /* ======================= ETUSIVU ======================= */
  .hero { padding: 4px var(--gutter) 0; }
  .hero-card {
    position: relative; isolation: isolate; overflow: hidden;
    max-width: calc(var(--max) + 32px); margin: 0 auto;
    border-radius: var(--radius); background: var(--wall); color: var(--paper-fixed);
    height: clamp(620px, calc(100svh - var(--header-h) - 96px), 780px);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 26px 22px 22px;
  }
  .hero-media { position: absolute; z-index: -1; inset: auto 0 0 0; height: 76%; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); }
  .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
  .hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgb(18 23 17 / .88) 0%, rgb(18 23 17 / .55) 32%, rgb(18 23 17 / 0) 54%); }
  .hero-name { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: color-mix(in oklab, var(--paper-fixed) 86%, transparent); margin-bottom: 14px; }
  .hero-claim { font-size: clamp(2.125rem, 1.2rem + 4.4vw, 4.5rem); font-weight: 600; line-height: 1.07; letter-spacing: -0.035em; max-width: 11em; }
  .hero-bottom { display: grid; gap: 18px; }
  .hero-lead { font-size: 1.0625rem; line-height: 1.5; max-width: 30em; }
  @media (max-width: 899px) {
    .hero .btn-primary { width: 100%; padding: 0 1em; letter-spacing: 0.04em; }
    .hero .btn-row { gap: 8px; }
  }
  @media (min-width: 900px) {
    .hero-card { height: clamp(640px, calc(100svh - var(--header-h) - 24px), 860px); padding: 48px 52px; }
    .hero-media { inset: 0 0 0 auto; width: 64%; height: 100%; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%); mask-image: linear-gradient(to right, transparent 0%, #000 26%); }
    .hero-media img { object-position: 50% 22%; }
    .hero-card::after { background: linear-gradient(to right, rgb(18 23 17 / .55) 0%, rgb(18 23 17 / .25) 40%, rgb(18 23 17 / 0) 60%); }
    .hero-top, .hero-bottom { max-width: 44%; }
    .hero-lead { font-size: 1.25rem; }
  }

  .welcome-grid { display: grid; gap: 36px; }
  .welcome-text h2 { margin-bottom: 28px; }
  .welcome-close { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; color: var(--sage-deep); margin: 28px 0 32px; }
  .welcome-photo { aspect-ratio: 4 / 5; }
  .welcome-photo img { object-position: 6% 50%; }
  @media (min-width: 900px) {
    .welcome-grid { grid-template-columns: 5fr 1fr 6fr; align-items: start; }
    .welcome-text { padding-top: 8px; }
    .welcome-photo { grid-column: 3; aspect-ratio: 5 / 6; }
  }

  .how-grid { display: grid; gap: 40px; }
  .how-text h2 { margin-bottom: 28px; }
  .how-actions { margin-top: 32px; }
  @media (min-width: 900px) { .how-grid { grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; } }

  .services-grid { display: grid; gap: 40px; }
  .services-intro h2 { margin-bottom: 20px; }
  .services-intro p { margin-bottom: 24px; color: var(--ink-soft); }
  .services-photo { display: none; }
  .service-list { border-top: 1px solid var(--line); }
  .service-list li { border-bottom: 1px solid var(--line); }
  .service-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 18px 0; text-decoration: none; color: inherit; min-height: 64px; }
  .service-name { font-size: clamp(1.1875rem, 1rem + .8vw, 1.625rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
  .service-desc { grid-column: 1 / -1; font-size: .9375rem; color: var(--ink-soft); line-height: 1.55; max-width: 40em; }
  .service-row .go { width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); font-size: 18px; transition: background-color .25s var(--ease), border-color .25s, color .25s, transform .3s var(--ease); }
  a.service-row:hover .go, .service-more summary:hover .go { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .service-more summary { list-style: none; cursor: pointer; }
  .service-more summary::-webkit-details-marker { display: none; }
  .service-more .go .icon { transition: transform .3s var(--ease); }
  .service-more[open] .go .icon { transform: rotate(45deg); }
  .service-more .service-desc { display: grid; gap: 12px; padding: 0 0 22px; }
  .service-more::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .service-more[open]::details-content { block-size: auto; }
  .service-list.compact { margin-top: 32px; }
  .service-list.compact .service-name { font-size: 1.1875rem; }
  .service-list.compact .service-row { min-height: 56px; padding: 14px 0; }
  a.service-row:hover .service-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
  @media (min-width: 900px) {
    .services-grid { grid-template-columns: 5fr 7fr; gap: 72px; }
    .services-intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
    .services-photo { display: block; aspect-ratio: 4 / 5; margin-top: 40px; max-width: 420px; }
    .services-photo img { object-position: 50% 40%; }
    .service-row { padding: 22px 0; }
  }

  .team-head h2 { margin-bottom: 20px; }
  .team-head { margin-bottom: 28px; }
  .team-photo { aspect-ratio: 4 / 3; }
  .team-photo img { object-position: 50% 10%; }
  .team-grid { display: grid; gap: 28px; margin-top: 36px; }
  .team-quote { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
  @media (min-width: 700px) { .team-photo { aspect-ratio: 16 / 9; } }
  @media (min-width: 900px) {
    .team-head { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: end; margin-bottom: 40px; }
    .team-head h2 { margin-bottom: 0; }
    .team-photo { aspect-ratio: 2 / 1; }
    .team-photo img { object-position: 50% 6%; }
    .team-grid { grid-template-columns: 5fr 7fr; gap: 72px; margin-top: 56px; }
  }

  .place-grid { display: grid; gap: 40px; }
  .place-text h2 { margin-bottom: 24px; }
  .place-photos { display: grid; }
  .place-photos .photo { aspect-ratio: 4 / 3; }
  .place-photos .p1 img { object-position: 50% 38%; }
  .halls { background: var(--bg-2); border-radius: var(--radius-sm); padding: 18px 20px; font-size: 1.0625rem; font-weight: 500; line-height: 1.45; margin-bottom: 28px; }
  @media (min-width: 900px) {
    .place-grid { grid-template-columns: 6fr 5fr; gap: 80px; align-items: start; }
    .place-photos { grid-column: 1; grid-row: 1; }
    .place-photos .photo { aspect-ratio: 5 / 6; }
    .place-text { grid-column: 2; grid-row: 1; padding-top: 8px; }
  }

  .tour { margin-top: 56px; display: grid; gap: 24px; align-items: center; background: var(--bg-2); border-radius: var(--radius); padding: 28px 22px 22px; }
  .tour h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); line-height: 1.12; margin-bottom: 12px; }
  .tour p { color: var(--ink-soft); }
  .tour-frame { border-radius: var(--radius-sm); aspect-ratio: 16 / 10; }
  .tour-frame img { object-position: 50% 45%; }
  .tour-btn { margin-top: 24px; }
  @media (max-width: 599px) { .tour-btn { width: 100%; } }
  @media (min-width: 900px) {
    .tour { grid-template-columns: 4fr 8fr; gap: 48px; padding: 40px; margin-top: 96px; }
    .tour-frame { aspect-ratio: 16 / 9; }
    .tour > div { align-self: center; }
  }


  /* ======================= TUNTIKALENTERI (esimerkkiviikko) ======================= */
  .sched-head { display: grid; gap: 22px; margin-bottom: 28px; }
  .sched-head h2 { margin-bottom: 20px; }
  .sched-head p { color: var(--ink-soft); }
  .week { display: grid; border-top: 1px solid var(--line); }
  .day { display: grid; grid-template-columns: 3rem 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .day-name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; padding-top: 12px; line-height: 1.2; }
  .d-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .slots { display: flex; flex-wrap: wrap; gap: 6px; }
  .slot-in { display: grid; gap: 1px; min-width: 5.25rem; padding: 8px 11px 9px; border-radius: 12px; background: var(--paper); border-top: 3px solid var(--sage); text-decoration: none; color: inherit; }
  .slot-time { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.2; font-variant-numeric: tabular-nums; }
  .slot-name { font-size: .8125rem; line-height: 1.3; color: var(--ink-soft); }
  .is-mom .slot-in { background: var(--sage); color: var(--on-sage); border-top-color: var(--sage-deep); }
  .is-mom .slot-name { color: inherit; }
  .is-mom a.slot-in:hover { background: var(--sage-deep); }
  .is-other .slot-in { background: var(--bg-2); border-top-color: var(--sage-deep); }
  .slot-note { font-size: .75rem; line-height: 1.3; font-weight: 600; color: var(--sage-deep); }
  .slot-none { color: var(--ink-soft); padding-top: 12px; font-size: .9375rem; }
  .sched-note { margin-top: 20px; color: var(--ink-soft); font-size: .9375rem; max-width: 46em; }
  @media (min-width: 900px) {
    .sched-head { grid-template-columns: 1fr auto; align-items: end; gap: 48px; margin-bottom: 44px; }
    .sched-head h2 { margin-bottom: 24px; }
    .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; border-top: 0; }
    .day { display: block; padding: 0; border-bottom: 0; }
    .day-name { padding: 0 0 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .d-short { display: none; }
    .d-full { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
    .slots { flex-direction: column; gap: 8px; }
    .slot-in { min-width: 0; padding: 12px 14px 13px; }
    .slot-time { font-size: 1.125rem; }
    .slot-none { padding-top: 4px; }
  }

  /* Tuntikalenteri-sivu */
  .tk-hero-grid { display: grid; gap: 24px; }
  .tk-hero h1 { margin-bottom: 18px; }
  .tk-hero + .section { padding-top: 48px; }
  .class-types { border-top: 1px solid var(--line); }
  .class-types li { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .class-types h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
  .class-types p { color: var(--ink-soft); max-width: 40em; }
  .class-types .text-link { justify-self: start; margin-top: 4px; }
  @media (min-width: 900px) {
    .tk-hero-grid { grid-template-columns: 1fr auto; align-items: end; gap: 64px; }
    .tk-hero .lead { max-width: 30em; }
    .tk-hero + .section { padding-top: 72px; }
  }

  .other-services { display: grid; gap: 12px; margin-top: 32px; }
  a.ccard { text-decoration: none; color: inherit; transition: background-color .25s var(--ease); }
  a.ccard:hover { background: var(--bg-2); }
  .other-services .ccard { background: var(--paper); }
  @media (min-width: 700px) { .other-services { grid-template-columns: 1fr 1fr; } }

  /* ======================= ALOITA ======================= */
  .options { display: grid; gap: 14px; margin-top: 48px; }
  .option { container-type: inline-size; border-radius: var(--radius); padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 18px; }
  .option.paper { background: var(--paper); }
  .option.tint { background: var(--bg-2); }
  .option-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
  @container (min-width: 460px) { .option-head { flex-direction: row; justify-content: space-between; gap: 16px; } }
  .option h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); letter-spacing: -0.025em; line-height: 1.12; }
  .price { font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
  .option-sum { font-weight: 500; font-size: 1.0625rem; line-height: 1.5; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .option .btn { align-self: flex-start; margin-top: auto; }
  .option .course-card { box-shadow: none; background: var(--bg); padding: 20px 16px 16px; }
  @media (max-width: 899px) { .option .btn { align-self: stretch; } }
  @media (min-width: 900px) {
    .options { grid-template-columns: 7fr 5fr; gap: 16px; margin-top: 72px; }
    .option { padding: 40px; gap: 22px; }
  }

  .exp-grid { display: grid; gap: 36px; }
  .exp-grid .photo { aspect-ratio: 4 / 5; }
  .exp-grid .photo img { object-position: 45% 40%; }
  .exp-text h2 { margin-bottom: 28px; }
  .exp-facts { margin: 28px 0; border-top: 1px solid var(--line-sage); }
  .exp-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-sage); font-weight: 500; }
  .exp-facts .icon { margin-top: .3em; font-size: 1.1em; }
  @media (min-width: 900px) { .exp-grid { grid-template-columns: 4fr 6fr; gap: 72px; align-items: center; } }

  .first-grid { display: grid; gap: 36px; }
  .first-grid h2 { margin-bottom: 28px; }
  .first-grid .photo { aspect-ratio: 3 / 2; }
  .first-grid .photo img { object-position: 30% 50%; }
  .first-note { background: var(--paper); border-radius: var(--radius-sm); padding: 20px 22px; font-weight: 500; margin-top: 1em; }
  @media (min-width: 900px) {
    .first-grid { grid-template-columns: 6fr 1fr 5fr; }
    .first-grid > :last-child { grid-column: 3; }
  }

  /* ======================= HINNASTO ======================= */
  .members { display: grid; gap: 48px; }
  .members-intro h2 { margin-bottom: 24px; }
  .members-intro p { color: var(--ink-soft); }
  .price-group + .price-group { margin-top: 40px; }
  .price-group h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); letter-spacing: -0.025em; margin-bottom: 8px; }
  .price-group .group-note { color: var(--ink-soft); margin-bottom: 18px; max-width: 36em; }
  .pay-note { margin-top: 32px; display: grid; gap: 16px; background: var(--bg-2); border-radius: var(--radius-sm); padding: 20px 22px; }
  .pay-note p { font-weight: 500; }
  @media (min-width: 900px) {
    .members { grid-template-columns: 5fr 7fr; gap: 80px; }
    .members-intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  }

  .course-prices { display: grid; gap: 12px; margin-top: 36px; }
  .cp { background: color-mix(in oklab, var(--ink-fixed) 14%, transparent); border: 1px solid var(--line-sage); border-radius: var(--radius-sm); padding: 22px; display: grid; gap: 10px; align-content: start; text-decoration: none; }
  .cp h3 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; }
  .cp .price { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); }
  .cp p { font-size: 1rem; line-height: 1.5; }
  .cp .text-link { margin-top: 6px; }
  a.cp:hover { background: color-mix(in oklab, var(--ink-fixed) 24%, transparent); }
  @media (min-width: 900px) { .course-prices { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; } .cp { padding: 28px; } }

  .service-block .split { align-items: center; }
  .service-block h2 { margin-bottom: 24px; }
  .service-block .price-list { margin: 28px 0 32px; }
  .service-block .btn-row { margin-top: 28px; }

  /* ======================= ÄIDEILLE ======================= */
  .mom-grid { display: grid; gap: 36px; }
  .facts-card { background: var(--paper); border-radius: var(--radius); padding: 26px 22px 22px; display: grid; gap: 20px; align-content: start; }
  .facts-card h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
  .facts { border-top: 1px solid var(--line); }
  .facts div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .facts dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
  .facts dd { font-weight: 600; font-size: 1.125rem; line-height: 1.4; }
  .facts-card .btn { width: 100%; }
  @media (min-width: 900px) {
    .mom-grid { grid-template-columns: 6fr 1fr 5fr; align-items: start; }
    .mom-grid > :last-child { grid-column: 3; position: sticky; top: calc(var(--header-h) + 32px); }
    .facts-card { padding: 36px; }
  }
  .practical { display: grid; gap: 28px; align-items: center; }
  .practical h2 { margin-bottom: 8px; }
  .practical .check-list { margin-bottom: 0; }
  .practical .photo { aspect-ratio: 4 / 3; }
  .practical .photo img { object-position: 50% 30%; }
  @media (min-width: 900px) { .practical { grid-template-columns: 6fr 5fr; gap: 72px; } }

  /* ======================= MEISTÄ ======================= */
  .page-hero.wide .page-hero-grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .page-hero.wide .photo { aspect-ratio: 4 / 3; }
  .page-hero.wide .photo img { object-position: 50% 8%; }
  @media (min-width: 900px) {
    .page-hero.wide .hero-text-row { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; }
    .page-hero.wide h1 { margin-bottom: 0; }
    .page-hero.wide .photo { aspect-ratio: 2 / 1; }
    .page-hero.wide .photo img { object-position: 50% 6%; }
  }
  .statement { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; max-width: 22em; text-wrap: balance; }
  .statement-body { display: grid; gap: 24px; margin-top: 40px; color: var(--ink-soft); }
  @media (min-width: 900px) { .statement-body { grid-template-columns: 5fr 7fr; gap: 72px; margin-top: 56px; } .statement-body > p { grid-column: 2; } }
  .coach-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
  .coach-photos .photo { aspect-ratio: 3 / 4; }
  .coach-photos .photo:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  @media (min-width: 900px) {
    .coach-photos { grid-template-columns: 6fr 3fr 3fr; gap: 16px; margin-top: 64px; }
    .coach-photos .photo:first-child { grid-column: auto; aspect-ratio: auto; }
  }

  /* ======================= OTA YHTEYTTÄ ======================= */
  .contact-cards { display: grid; gap: 12px; }
  .ccard { background: var(--paper); border-radius: var(--radius-sm); padding: 22px; display: grid; gap: 10px; align-content: start; }
  .ccard .label { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
  .ccard .label .icon { color: var(--sage-deep); font-size: 1.25rem; }
  .ccard .big { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
  .ccard a.big:hover { text-decoration: underline; }
  .ccard p { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
  .ccard .btn, .ccard .text-link { justify-self: start; margin-top: 6px; }
  @media (min-width: 700px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1100px) { .contact-cards { gap: 14px; } .ccard { padding: 32px; } }
  .contact-hero .photo img { object-position: 50% 25%; }
}

/* --- WordPress-lisäykset ------------------------------------------------ */
@layer components {
  /* Hallintapalkki kirjautuneille */
  body.admin-bar { --adminbar: 32px; }
  @media (max-width: 782px) { body.admin-bar { --adminbar: 46px; } }
  .admin-bar .site-header { top: var(--adminbar, 0px); }
  .admin-bar .mobile-menu { inset-block-start: calc(var(--header-h) + var(--adminbar, 0px)); }

  /* Roskapostisuojan piilokenttä */
  .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* Lomakkeen virheilmoitus */
  .form-status.err { display: flex; background: var(--err-bg); color: var(--err); border: 1.5px solid var(--err); }
  .form-foot .btn[aria-busy="true"] { opacity: .7; cursor: progress; }

  /* Tavalliset sivut (esim. tietosuojaseloste) */
  .prose { max-width: 46em; }
  .prose h1 { margin-bottom: 32px; }
  .prose-body > * + * { margin-top: 1em; }
  .prose-body h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); margin-top: 1.6em; }
  .prose-body h3 { font-size: 1.375rem; margin-top: 1.4em; }
  .prose-body ul, .prose-body ol { padding-left: 1.25em; }
  .prose-body li + li { margin-top: .35em; }
  .prose-body a { font-weight: 500; }
  .prose-body img { border-radius: var(--radius-sm); }
  .not-found .btn-row { margin-top: 32px; }
}

/* --- HTML-sivuston lisäykset: arvostelut, evästesuostumus ---------------- */
@layer components {
  /* Arvostelut */
  .reviews-head { display: grid; gap: 18px; margin-bottom: 28px; }
  .rating { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-self: start; padding: 10px 16px; border-radius: 999px; background: var(--bg-2); color: var(--ink); text-decoration: none; font-size: .9375rem; line-height: 1.3; }
  .rating strong { font-size: 1.0625rem; }
  a.rating:hover { background: var(--sage); color: var(--on-sage); }
  a.rating:hover .stars { color: var(--on-sage); }
  .stars { display: inline-flex; gap: 2px; color: var(--sage-deep); }
  .stars .icon { fill: currentColor; stroke: none; font-size: 1.05rem; }
  .review-list { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 380px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 14px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .review { scroll-snap-align: start; }
  .review figure { height: 100%; display: flex; flex-direction: column; gap: 16px; background: var(--paper); border-radius: var(--radius-sm); padding: 24px 22px 20px; }
  .review blockquote { margin: 0; flex: 1; }
  .review blockquote p { font-size: 1.125rem; line-height: 1.5; letter-spacing: -0.005em; }
  .review figcaption { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
  .review-name { font-weight: 600; }
  .review-src { font-size: .8125rem; color: var(--ink-soft); }
  @media (min-width: 900px) {
    .reviews-head { grid-template-columns: 1fr auto; align-items: end; gap: 48px; margin-bottom: 44px; }
    .reviews-head h2 { margin: 0; }
    .review-list { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 0; gap: 14px; }
    .review figure { padding: 28px; }
  }

  /* Evästesuostumus: hyväksyminen ja kieltäminen ovat yhtä helppoja */
  .consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); max-width: 460px; display: grid; gap: 8px; padding: 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 28px 60px -24px rgb(var(--shadow) / .5), 0 2px 8px rgb(var(--shadow) / .08); }
  .consent-title { font-weight: 700; font-size: 1.0625rem; }
  .consent-text { font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); }
  .consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .consent .btn { flex: 1 1 160px; min-height: 46px; padding: 0 1em; }
  @media (min-width: 900px) { .consent { left: 24px; right: auto; bottom: 24px; } }
  body:has(.consent:not([hidden])) .sticky-cta { opacity: 0; pointer-events: none; }
  .link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
  .link-button:hover { text-decoration: underline; }
  .footer-fine { align-items: center; }
}

/* --- Kartta ja saapuminen ---------------------------------------------- */
@layer components {
  .map-grid { display: grid; gap: 28px; }
  .map-info h2 { margin-bottom: 20px; }
  .arrive { margin: 24px 0 28px; border-top: 1px solid var(--line); }
  .arrive li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .arrive .icon { flex: none; font-size: 1.375rem; color: var(--sage-deep); margin-top: 2px; }
  .arrive strong { display: block; font-weight: 600; margin-bottom: 2px; }
  .arrive span { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
  .arrive a { font-weight: 500; }
  .map-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); aspect-ratio: 4 / 5; min-height: 380px; }
  .map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  @media (min-width: 900px) {
    .map-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: stretch; }
    .map-frame { aspect-ratio: auto; min-height: 560px; }
  }
}

/* --- Usein kysyttyä ja saapumiskortti ---------------------------------- */
@layer components {
  .faq-grid { display: grid; gap: 24px; }
  .faq-grid h2 { margin-bottom: 20px; }
  .faq-lead { color: var(--ink-soft); }
  .accordion.faq { margin-top: 0; }
  .accordion.faq summary { font-size: 1.125rem; }
  @media (min-width: 900px) {
    .faq-grid { grid-template-columns: 5fr 7fr; gap: 80px; }
    .faq-grid > :first-child { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  }
  .arrival-card { margin-top: 16px; background: var(--paper); border-radius: var(--radius-sm); padding: 18px 20px; display: grid; gap: 8px; max-width: 36em; }
  .arrival-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
  .arrival-title .icon { color: var(--sage-deep); font-size: 1.2em; }
  .arrival-card p:not(.arrival-title) { color: var(--ink-soft); font-size: 1rem; }
  .arrival-card .text-link { justify-self: start; }
}

/* --- Omatoimiharjoittelu: välinelista ---------------------------------- */
@layer components {
  .equip-title { font-size: 1.375rem; letter-spacing: -0.02em; margin-bottom: 4px; }
  .check-list.equip { margin-top: 16px; }
  @media (min-width: 600px) {
    .check-list.equip { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  }
}

/* --- Alatunniste ilman isoa logotekstiä -------------------------------- */
@layer components {
  .site-footer { padding-bottom: 40px; }
  @media (min-width: 900px) { .site-footer { padding-bottom: 56px; } }
}
@layer components {
  @media (min-width: 600px) { .check-list.equip li.wide { grid-column: 1 / -1; } }
}

/* --- Kurssien ehdot (Aloita) ja linkki hinnastossa ---------------------- */
@layer components {
  .course-terms { margin-top: 40px; max-width: 760px; }
  .course-terms h3 { margin-bottom: 4px; }
  .course-terms .accordion { margin-top: 16px; }
  .terms-link { margin-top: 24px; }
  @media (min-width: 900px) { .course-terms { margin-top: 56px; } }
}
@layer components {
  .equip-lead { margin-top: 12px; color: var(--ink-soft); max-width: 40em; }
}

@layer motion {
  /* Sivusiirtymä: View Transitions API. Header ja tarranappi pysyvät paikoillaan. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .2s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
  ::view-transition-group(site-header), ::view-transition-group(sticky-cta) { animation-duration: .3s; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

  /* Etusivun kuva asettuu paikalleen latauksessa */
  .hero-media img { animation: hero-in 1.6s var(--ease) both; }
  @keyframes hero-in { from { transform: scale(1.06); } to { transform: scale(1); } }

  /* Kuvat asettuvat hiljalleen, kun ne vieritetään esiin (scroll-driven animations) */
  @supports (animation-timeline: view()) {
    .reveal img {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    @keyframes settle { from { transform: scale(var(--settle-from, 1.1)); opacity: .35; } to { transform: scale(1); opacity: 1; } }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal img { animation: none !important; }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  }
}
