/* ==========================================================================
   Training Ground Vantaa — direction v1 "Aurinkoinen sali"
   Calm cream base, sage blocks, one signal-orange action.
   ========================================================================== */

:root {
  --cream: #f3eee4;
  --cream-2: #e9e2d4;
  --paper: #fbf8f2;
  --ink: #1b1f1b;
  --ink-soft: #464b45;      /* 7.6:1 on cream */
  --sage: #657363;          /* brand */
  --sage-deep: #4e5a4c;     /* sage for text on cream, 6.3:1 */
  --on-sage: #fbf8f2;       /* 4.7:1 on sage */
  --orange: #a9c9a1;        /* ink on orange 5.5:1 */
  --orange-hover: #93b68a;  /* ink on hover 4.7:1 */
  --wall: #3b3029;          /* brown of the gym wall in photo 158 */
  --line: rgba(27, 31, 27, 0.16);
  --line-sage: rgba(251, 248, 242, 0.32);

  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: 16px;
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1360px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 24px; --radius: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

  scroll-padding-top: 88px;
  scrollbar-color: var(--sage) var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: clip;
  caret-color: var(--orange);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 900px) {
  body { font-size: 1.125rem; }
}

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

img { display: block; max-width: 100%; height: auto; }

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); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

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

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

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

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

/* --- 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 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn .icon { font-size: 1.15em; transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #343a33; }

.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.on-dark .btn-line, .on-sage .btn-line { color: var(--paper); }
.on-dark .btn-line:hover, .on-sage .btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
@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 0.3s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 68px;
}
.brand { display: block; flex: none; border-radius: 6px; }
.brand img { height: 34px; width: auto; }

.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: 0.5em;
  text-decoration: none; color: var(--ink-soft);
  padding: 8px 2px;
}
.schedule-link:hover { 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"] { background: var(--ink); color: var(--paper); }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  background: var(--cream);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 1.5rem; font-weight: 500; 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: 1100px) {
  .header-inner { min-height: 80px; gap: 28px; }
  .brand img { height: 40px; }
  .main-nav { display: block; }
  .main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
  .main-nav a {
    display: block; padding: 8px 12px; border-radius: 999px;
    font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  }
  .main-nav a:hover { background: var(--cream-2); }
  .main-nav a[aria-current="page"] { background: var(--cream-2); box-shadow: inset 0 0 0 1px var(--line); }
  .header-cta { display: inline-flex; min-height: 46px; }
  .menu-toggle, .mobile-menu, .mobile-menu.is-open { display: none; }
}

/* --- Sticky mobile CTA ------------------------------------------------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  min-height: 54px;
  box-shadow: 0 10px 30px -8px rgba(27, 31, 27, 0.45), 0 2px 6px rgba(27, 31, 27, 0.18);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
body { padding-bottom: 84px; }
@media (min-width: 1100px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* --- Section scaffolding ------------------------------------------------ */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 120px 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; } }

.h-xl { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5.25rem); }
.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; }

/* --- Photo card -------------------------------------------------------- */
.photo {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(251, 248, 242, 0.92); color: var(--ink);
  padding: 6px 10px; border-radius: 999px;
}

/* ==========================================================================
   HERO (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);
  height: clamp(600px, calc(100svh - 168px), 760px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px 22px 22px;
}

.hero-media {
  position: absolute; z-index: -1;
  left: 0; right: 0; bottom: 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%;
  animation: hero-in 1.6s var(--ease) both;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(22, 18, 15, 0.86) 0%, rgba(22, 18, 15, 0.55) 30%, rgba(22, 18, 15, 0) 52%);
}

@keyframes hero-in {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero-title { color: rgba(251, 248, 242, 0.86); margin-bottom: 14px; font-weight: 500; }
.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; text-wrap: balance; margin: 0;
}
.hero-bottom { display: grid; gap: 18px; }
.hero-lead { font-size: 1.0625rem; line-height: 1.5; max-width: 30em; margin: 0; }
.hero .btn-row .btn-line { min-height: 48px; }

@media (max-width: 899px) {
  .hero .btn-primary { width: 100%; padding: 0 1em; letter-spacing: 0.04em; }
  .sticky-cta { letter-spacing: 0.04em; }
  .hero .btn-row { gap: 8px; }
}

@media (min-width: 900px) {
  .hero-card {
    height: clamp(620px, calc(100svh - 104px), 860px);
    padding: 48px 52px 48px;
  }
  .hero-media {
    left: auto; top: 0; 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, rgba(22, 18, 15, 0.55) 0%, rgba(22, 18, 15, 0.25) 40%, rgba(22, 18, 15, 0) 60%);
  }
  .hero-top, .hero-bottom { max-width: 44%; }
  .hero-lead { font-size: 1.25rem; }
}

/* ==========================================================================
   TERVETULOA
   ========================================================================== */
.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: 30% 50%; }

@media (min-width: 900px) {
  .welcome-grid { grid-template-columns: 5fr 1fr 6fr; align-items: start; }
  .welcome-text { grid-column: 1; padding-top: 8px; }
  .welcome-photo { grid-column: 3; aspect-ratio: 5 / 6; margin-top: 0; }
}

/* ==========================================================================
   MITEN MUKAAN (sage block)
   ========================================================================== */
.sage-block {
  background: var(--sage); color: var(--on-sage);
  border-radius: var(--radius);
  padding: 44px 22px 22px;
  max-width: calc(var(--max) + 32px); margin: 0 auto;
}
.sage-block .rule { border-top-color: var(--line-sage); color: var(--on-sage); }
.how-grid { display: grid; gap: 40px; }
.how-text h2 { margin-bottom: 28px; }
.how-text .btn-row { margin-top: 32px; }

@media (min-width: 900px) {
  .sage-block { padding: 64px 64px 64px; }
  .how-grid { grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; }
}

/* Course card (rendered from 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 rgba(20, 26, 20, 0.6);
}
.course-card .mono { color: var(--ink-soft); }
.course-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.course-name { font-size: 1.625rem; letter-spacing: -0.02em; margin: 0 0 14px; }
.course-dates {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08;
  margin: 4px 0 14px;
}
.course-period {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); border-radius: 999px; padding: 6px 12px 6px 10px;
  font-size: 0.9375rem; font-weight: 500; margin-bottom: 18px;
}
.course-period .icon { color: var(--sage-deep); }
.course-price { color: var(--ink-soft); font-size: 0.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; }
@media (max-width: 599px) { .course-card { padding: 20px 16px 16px; } }
.course-empty { font-size: 1.0625rem; }

/* ==========================================================================
   PALVELUMME
   ========================================================================== */
.services-grid { display: grid; gap: 40px; }
.services-intro h2 { margin-bottom: 24px; }
.services-photo { display: none; }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list li { border-bottom: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 2.4em 1fr auto; gap: 10px; align-items: baseline;
  padding: 18px 0; text-decoration: none; color: inherit;
}
.service-row .num { color: var(--ink-soft); }
.service-name { font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.625rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.service-desc { grid-column: 2 / 4; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.55; margin-top: 4px; 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; align-self: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s, transform 0.3s var(--ease);
}
a.service-row:hover .go { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }
a.service-row:hover .service-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

@media (min-width: 900px) {
  .services-grid { grid-template-columns: 5fr 7fr; gap: 72px; }
  .services-intro { position: sticky; top: 112px; 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; }
}

/* ==========================================================================
   TIIMI
   ========================================================================== */
.team-photo { aspect-ratio: 4 / 3; }
.team-photo img { object-position: 52% 40%; }
.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;
  margin: 0; text-wrap: balance;
}
.team-quote strong { font-weight: inherit; }
@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-photo { aspect-ratio: 21 / 10; }
  .team-photo img { object-position: 50% 32%; }
  .team-grid { grid-template-columns: 5fr 7fr; gap: 72px; margin-top: 56px; }
  .team-body { columns: 2; column-gap: 40px; }
  .team-body p { break-inside: avoid; }
}
.team-head h2 { margin-bottom: 20px; }
.team-head { margin-bottom: 28px; }

/* ==========================================================================
   TILAT JA SIJAINTI
   ========================================================================== */
.place-grid { display: grid; gap: 40px; }
.place-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.place-photos .p1 { aspect-ratio: 3 / 4; }
.place-photos .p1 img { object-position: 50% 30%; }
.place-photos .p2 { aspect-ratio: 3 / 4; }
.place-photos .p2 img { object-position: 45% 50%; }

.check-list { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 2px; }
.check-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.check-list .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;
}
.halls {
  background: var(--cream-2); border-radius: var(--radius-sm);
  padding: 18px 20px; font-size: 1.0625rem; font-weight: 500; line-height: 1.45;
  margin-bottom: 28px;
}
.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-style: normal; 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; }

@media (min-width: 900px) {
  .place-grid { grid-template-columns: 6fr 5fr; gap: 80px; align-items: start; }
  .place-photos { grid-column: 1; grid-row: 1; grid-template-columns: 7fr 5fr; gap: 16px; align-items: end; }
  .place-photos .p1 { grid-column: 1; aspect-ratio: 3 / 4; }
  .place-photos .p2 { grid-column: 2; aspect-ratio: 4 / 5; margin-bottom: 64px; }
  .place-photos .p2 img { object-position: 40% 50%; }
  .place-text { grid-column: 2; grid-row: 1; padding-top: 8px; }
}

/* Tour (click to load) */
.tour {
  margin-top: 56px;
  display: grid; gap: 24px; align-items: center;
  background: var(--cream-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; }
.tour-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3; background: var(--ink);
}
.tour-frame > img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-load {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  white-space: nowrap;
}
.tour-load:active { transform: translate(-50%, -50%) scale(0.98); }
@media (min-width: 900px) {
  .tour { grid-template-columns: 4fr 8fr; gap: 48px; padding: 40px; margin-top: 96px; }
  .tour-frame { aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   CLOSING CTA
   ========================================================================== */
.closing { display: grid; gap: 0; 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-primary { 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;
}
@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; }
@media (min-width: 900px) { .footer-grid > :nth-child(-n+2) { grid-column: auto; } }
.footer-logo img { width: 190px; height: auto; }
.footer-col h2 { margin-bottom: 14px; color: var(--on-sage); font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col address { font-style: normal; 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; }
}

.wordmark {
  display: block;
  font-family: var(--font);
  font-weight: 700;
  font-stretch: 78%;
  font-size: 11.6vw;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: var(--cream);
  margin: 28px 0 -0.19em;
  padding: 0 0 0 calc(var(--gutter) - 0.04em);
  user-select: none;
}
@media (min-width: 900px) { .wordmark { margin-top: 40px; } }

/* ==========================================================================
   ALOITA
   ========================================================================== */
.page-hero { padding: 28px 0 0; }
.page-hero-grid { display: grid; gap: 28px; }
.page-hero h1 {
  font-size: clamp(4rem, 2.4rem + 8vw, 9rem); letter-spacing: -0.05em; line-height: 0.9; font-weight: 600;
  margin-bottom: 22px;
}
.page-hero .lead { max-width: 26em; }
.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(--cream-2); text-decoration: none; font-weight: 500; font-size: 0.9375rem;
}
.jump a:hover { background: var(--ink); color: var(--paper); }
.page-hero .photo { aspect-ratio: 4 / 3; }
.page-hero .photo img { object-position: 32% 40%; }
@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; }
}

.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; }
}

/* Course options */
.options { display: grid; gap: 14px; margin-top: 48px; }
.option {
  border-radius: var(--radius); padding: 26px 22px 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.option.small-group { background: var(--paper); }
.option.private { background: var(--cream-2); }
.option-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
@media (min-width: 600px) { .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(--cream); padding: 20px 16px 16px; }
@media (min-width: 600px) { .option .course-card { padding: 22px 20px 20px; } }
@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; }
}

/* Experienced (sage) */
.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; padding: 0; list-style: none; 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: 0.3em; font-size: 1.1em; }
@media (min-width: 900px) {
  .exp-grid { grid-template-columns: 4fr 6fr; gap: 72px; align-items: center; }
}

/* Before first time */
.first-grid { display: grid; gap: 36px; }
.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;
}
.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 summary .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 0.3s var(--ease); flex: none; }
.accordion details[open] summary .pm { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 22px; color: var(--ink-soft); max-width: 40em; }
@media (min-width: 900px) {
  .first-grid { grid-template-columns: 6fr 1fr 5fr; }
  .first-grid > .first-text { grid-column: 1; }
  .first-grid > .first-side { grid-column: 3; }
}

/* Form */
.form-wrap {
  background: var(--paper); border-radius: var(--radius);
  padding: 32px 22px 24px;
  max-width: calc(var(--max) + 32px); margin: 0 auto;
}
.form-grid { display: grid; gap: 32px; }
.form-intro h2 { margin-bottom: 24px; }
.form-contact .btn { margin-top: 24px; }
.contact-list { list-style: none; margin: 0; padding: 0; 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; }


form .field { display: grid; gap: 8px; margin-bottom: 20px; }
form label { font-weight: 600; font-size: 0.9375rem; }
form label .req { color: var(--sage-deep); }
form input, form select, form textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid rgba(27, 31, 27, 0.32); border-radius: 14px;
  padding: 14px 16px; min-height: 54px;
  transition: border-color 0.2s, background-color 0.2s;
}
form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
form select {
  appearance: none; -webkit-appearance: none; padding-right: 48px;
  background-image: 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='%231b1f1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
form input:hover, form select:hover, form textarea:hover { border-color: rgba(27, 31, 27, 0.55); }
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--ink); background-color: var(--paper); }
form input:focus-visible, form select:focus-visible, form textarea:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; background-color: #fbf1ee; }
.field-error { color: #9e2219; font-size: 0.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: 0.9375rem; color: var(--ink-soft); margin: 0; max-width: 30em; }
.form-status {
  display: none; margin-top: 20px; border-radius: var(--radius-sm); padding: 18px 20px; font-weight: 600;
  align-items: center; gap: 12px;
}
.form-status.ok { display: flex; background: var(--sage); color: var(--on-sage); }
.form-status.err { display: flex; background: #fbf1ee; color: #9e2219; }
@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; }
  #yhteydenotto { grid-column: 2; grid-row: 1 / span 2; }
}

/* --- Motion preferences ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
