  /* ============================================================
     ANIMATIONS
     ============================================================ */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes revealUp {
    from { transform: translateY(105%); }
    to { transform: translateY(0); }
  }
  @keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
  }
  @keyframes marq {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* Reveal-on-scroll base */
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
  [data-reveal].in {
    opacity: 1;
    transform: translateY(0);
  }
  /* Sticky cards must not have transform — it breaks position: sticky */
  .stack-card[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* ============================================================
     RESPONSIVE
     ============================================================ */
  @media (max-width: 1000px) {
    .marquee-inner { gap: 20px; }
    .marquee-label { font-size: 10px; padding-right: 16px; }
    .stack-card { grid-template-columns: 1fr; gap: 32px; padding: 32px; min-height: 0; }
    .stack-card-right { min-height: 320px; }
    .browser { max-width: 420px; transform: none; }
    .kt-compare { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .foot-brand { grid-column: 1 / -1; }
    .foot-cta-col { grid-column: 1 / -1; }
    .foot-cta-stack { flex-direction: row; }
    .foot-cta-card { flex: 1; }
    .tl-arrow { transform: rotate(90deg); }
    .closing-timeline { flex-direction: column; align-items: center; }
    .tl-step { width: 100%; max-width: 280px; }
  }
  @media (max-width: 600px) {
    .container { padding: 0 20px; }
    .hero { padding: 170px 0 90px; }
    .kt-footer { flex-direction: column; align-items: flex-start; }
    .cc-row { flex-direction: column; gap: 8px; }
    .foot-grid { grid-template-columns: 1fr; gap: 28px; }
    .foot-cta-stack { flex-direction: column; }
    .foot-bottom { flex-direction: column; align-items: flex-start; }
  }

  /* Copy review: allow longer Finnish labels without crowding the cards. */
  .home-kicker { margin-bottom: 20px; }
  #keskustellaan { scroll-margin-top: 140px; }
  .home-contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .closing-lead.home-contact-copy { margin-top: 28px; }
  .home-contact-copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
  /* Kipina-widget tummalla herolla: lapinakyva tausta ja vaalea teksti.
     Rivi ei saa rivittya kun syottokentta avautuu, joten kentta kutistuu. */
  .home-kipina-hi { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.35); color: #fff; }
  .home-kipina-hi .ai-hi-label,
  .home-kipina-hi .ai-hi-input,
  .home-kipina-hi .ai-hi-send { color: #fff; }
  .home-kipina-hi .ai-hi-input::placeholder { color: rgba(255,255,255,.65); }
  .home-kipina-hi:hover, .home-kipina-hi:focus-within { border-color: rgba(255,255,255,.7); color: #fff; }
  @media (min-width: 861px) {
    .hero-cta-row:has(.ai-hi) { flex-wrap: nowrap; }
    .hero-cta-row:has(.ai-hi) > * { min-width: 0; }
    .hero-cta-row .ai-hi { min-width: 0; }
    .hero-cta-row .ai-hi-label { flex-shrink: 0; }
    .hero-cta-row .ai-hi-input { min-width: 0; }
    .hero-cta-row .btn-primary { flex-shrink: 0; white-space: nowrap; }
  }
   .hero-main, .stack-card-left { min-width: 0; }
  @media (max-width: 600px) {
    .home-contact-actions { flex-direction: column; align-items: stretch; }
    .closing-headline { font-size: clamp(32px, 9vw, 44px); }
    .home-contact-actions .btn-primary { justify-content: center; }
    .hero-cta-row { gap: 14px; }
    .hero-cta-row .btn-primary { max-width: 100%; justify-content: center; text-align: center; }
  }

  /* Hero composition: one main message, quieter discovery links below. */
  .hero-editorial { padding: 200px 0 48px; }
  .hero-editorial .container { max-width: 1520px; padding-inline: clamp(24px, 7.8vw, 112px); }
  .hero-editorial .hero-inner { max-width: none; width: 100%; }
  .hero-editorial .hero-grid { display: flex; flex-direction: column; gap: 64px; }
  .hero-editorial .hero-main { width: 100%; max-width: 800px; }
  .hero-editorial .hero-split { display: block; }
  .hero-editorial .hero-bar { display: none; }
  .hero-editorial h1 { font-size: clamp(44px, 6.2vw, 88px); line-height: 1.07; letter-spacing: -.045em; }
  .hero-editorial .home-kicker { background: none; border: 0; padding: 0; color: rgba(255,255,255,.78); box-shadow: none; margin: 0 0 24px; }
  .hero-editorial .home-kicker::before { display: none; }
  .hero-editorial .hero-sub { margin: 32px 0 0; max-width: 600px; color: rgba(255,255,255,.86); }
  .hero-editorial .hero-cta-row { margin: 32px 0 0; gap: 16px; }
  .hero-editorial .hero-scrim { background: linear-gradient(90deg,rgba(15,23,57,.94) 0%,rgba(15,23,57,.8) 43%,rgba(15,23,57,.22) 100%); }
  .hero-discover { width: 100%; border-top: 1px solid rgba(255,255,255,.25); padding-top: 24px; }
  .hero-discover-label { margin: 0 0 20px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.65); }
  .hero-discover-links { display: flex; list-style: none; padding: 0; margin: 0; gap: 32px; }
  .hero-discover-links li { flex: 1; min-width: 0; }
  .hero-discover-links a { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 12px; color: #fff; text-decoration: none; }
  .hero-discover-type { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); }
  .hero-discover-title { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; line-height: 1.45; font-weight: 600; }
  .hero-discover-title span { color: #ffb34d; }
  .hero-discover-links a:hover .hero-discover-title { text-decoration: underline; text-underline-offset: 5px; }
  .hero-editorial a:focus-visible, .hero-editorial button:focus-visible { outline: 2px solid #ffb34d; outline-offset: 6px; }
  @media (max-width: 1100px) and (min-width: 1001px) {
    .hero-editorial .container { padding-inline: 112px 32px; }
  }
  @media (max-width: 700px) {
    .hero-editorial { padding: 168px 0 32px; }
    .hero-editorial .container { padding-inline: 24px; }
    .hero-editorial .hero-grid { gap: 48px; }
    .hero-editorial h1 { font-size: clamp(36px, 7.8vw, 54px); }
    .hero-editorial .hero-sub { font-size: 16px; line-height: 1.6; margin-top: 24px; }
    .hero-discover-links { flex-direction: column; gap: 0; }
    .hero-discover-links li + li { border-top: 1px solid rgba(255,255,255,.14); }
    .hero-discover-links a { padding-block: 16px; }
    .hero-discover-label { margin-bottom: 0; }
    .hero-editorial .hero-scrim { background: rgba(15,23,57,.78); }
  }

  /* Reduced motion */
  @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;
    }
    .hero-video { display: none; }
    .hero { background: linear-gradient(135deg, var(--navy-deeper) 0%, var(--navy) 100%); }
    .browser { transform: none; }
  }

  /* Early service map: a compact route into Labona's four service families. */
  .core-services {
    background: #fff;
    border-bottom: 1px solid rgba(35, 46, 102, 0.12);
    padding: clamp(56px, 8vh, 88px) 0 clamp(40px, 5vh, 56px);
  }
  .core-services-title {
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: clamp(28px, 4vw, 40px);
  }
  .core-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .core-service-link {
    min-width: 0;
    min-height: 118px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 24px 22px;
    color: var(--navy);
    border-right: 1px solid rgba(35, 46, 102, 0.12);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .core-service-link:last-child { border-right: 0; }
  .core-service-link:hover,
  .core-service-link:focus-visible { background: var(--orange-50); }
  .core-service-link:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
  .core-service-num { font-size: 11px; color: var(--orange); letter-spacing: 0.08em; }
  .core-service-copy { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
  .core-service-copy strong { font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; }
  .core-service-copy small { font-size: 12px; line-height: 1.45; color: var(--text-muted); }
  .core-service-arrow { color: var(--orange); font-size: 20px; transition: transform 0.2s ease; }
  .core-service-link:hover .core-service-arrow { transform: translateX(3px); }
  @media (max-width: 1100px) {
    .core-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .core-service-link:nth-child(2) { border-right: 0; }
    .core-service-link:nth-child(-n+2) { border-bottom: 1px solid rgba(35, 46, 102, 0.12); }
  }
  @media (max-width: 700px) {
    .core-services-grid { grid-template-columns: 1fr; }
    .core-service-link { min-height: 92px; border-right: 0; border-bottom: 1px solid rgba(35, 46, 102, 0.12); padding-inline: 4px; }
    .core-service-link:last-child { border-bottom: 0; }
  }

  /* Illustrative growth-work queue in the dedicated partnership card. */
  .growth-view {
    width: 100%;
    min-height: 100%;
    padding: clamp(20px, 2.6vw, 34px);
    color: #fff;
    background:
      radial-gradient(circle at 88% 10%, rgba(233,30,133,.2), transparent 32%),
      linear-gradient(145deg, #202b65, #111936 72%);
    border-radius: 22px;
    box-shadow: 0 28px 60px -26px rgba(21,30,72,.62);
  }
  .growth-view-head,
  .growth-view-foot { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
  .growth-view-head { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .growth-view-head span { font-size: 14px; font-weight: 800; }
  .growth-view-head small { font: 600 9px/1.2 var(--mono); color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }
  .growth-focus { display: flex; flex-direction: column; gap: 7px; padding: 26px 0 20px; }
  .growth-focus small { color: #ffb34d; font: 700 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
  .growth-focus strong { font-size: clamp(20px, 2vw, 28px); line-height: 1.12; }
  .growth-focus span { color: rgba(255,255,255,.64); font-size: 12px; line-height: 1.5; }
  .growth-board { display: grid; gap: 9px; }
  .growth-board > div { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 5px 13px; padding: 13px; border-radius: 12px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); }
  .growth-board strong { font-size: 12.5px; }
  .growth-board small { grid-column: 2; color: rgba(255,255,255,.52); font-size: 10px; }
  .growth-state { grid-row: 1 / span 2; align-self: center; color: #ffb34d; font: 800 8px/1.2 var(--mono); letter-spacing: .06em; }
  .growth-state.is-test { color: #ffb3d9; }
  .growth-state.is-next { color: #fff; }
  .growth-view-foot { margin-top: 20px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font: 600 9px/1.3 var(--mono); }

  /* ÄlyCMS is its own product view, visually separate from the Kipinä assistant. */
  .alycms-card-view {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.6vw, 34px);
    color: #17214c;
    background: linear-gradient(145deg, #fff 0%, #fff9f3 100%);
    border: 1px solid rgba(35,46,102,.12);
    border-radius: 22px;
    box-shadow: 0 28px 60px -30px rgba(21,30,72,.4);
  }
  .alycms-card-head,
  .alycms-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .alycms-card-head { padding-bottom: 20px; border-bottom: 1px solid rgba(35,46,102,.12); }
  .alycms-card-head span { font-size: 14px; font-weight: 800; }
  .alycms-card-head small { color: #7a809b; font: 600 9px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
  .alycms-card-request { margin-top: 28px; padding: 20px; border-radius: 15px; color: #fff; background: #202b65; }
  .alycms-card-request small,
  .alycms-card-preview small { display: block; margin-bottom: 7px; font: 700 9px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
  .alycms-card-request small { color: #ffb34d; }
  .alycms-card-request strong { display: block; max-width: 30ch; font-size: clamp(15px, 1.45vw, 20px); line-height: 1.4; }
  .alycms-card-preview { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 14px; margin-top: 14px; padding: 16px; border: 1px solid rgba(35,46,102,.12); border-radius: 14px; background: #fff; }
  .alycms-card-thumb { width: 54px; aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, #f58024 0 42%, #ffd8b9 42% 65%, #202b65 65%); }
  .alycms-card-preview small { color: #e55f00; }
  .alycms-card-preview strong { display: block; font-size: 12.5px; line-height: 1.35; }
  .alycms-card-check { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #fff; background: #239b68; font-size: 13px; font-weight: 800; }
  .alycms-card-actions { margin-top: auto; padding-top: 20px; }
  .alycms-card-actions span,
  .alycms-card-actions strong { padding: 10px 13px; border-radius: 9px; font-size: 10px; line-height: 1.2; }
  .alycms-card-actions span { color: #6d748f; background: #f1f2f6; }
  .alycms-card-actions strong { color: #fff; background: #f58024; }

  .stack-card:nth-child(5) { z-index: 5; }

  /* The four process steps always resolve to 4x1, 2x2 or 1x4. */
  .closing-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr) auto) minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
  }
  .closing-timeline-label { grid-column: 1 / -1; }
  .closing-timeline .tl-step { width: auto; min-width: 0; max-width: none; padding-inline: 14px; }
  .home-contact-actions { align-items: stretch; }
  .home-contact-actions .ai-hi,
  .home-contact-actions .btn-xl { box-sizing: border-box; height: 64px; min-height: 64px; }
  .home-contact-actions .btn-xl { display: inline-flex; align-items: center; padding-block: 0; }

  @media (max-width: 1000px) {
    .closing-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
    .closing-timeline .tl-arrow { display: none; }
    .closing-timeline .tl-step { max-width: none; }
  }
  @media (max-width: 700px) {
    .growth-view-foot { align-items: flex-start; flex-direction: column; gap: 6px; }
    .alycms-card-head { align-items: flex-start; flex-direction: column; gap: 7px; }
    .alycms-card-preview { grid-template-columns: 44px minmax(0,1fr); }
    .alycms-card-thumb { width: 44px; }
    .alycms-card-check { grid-column: 2; }
    .alycms-card-actions { align-items: stretch; flex-direction: column; }
    .alycms-card-actions span,
    .alycms-card-actions strong { text-align: center; }
    .closing-timeline { grid-template-columns: 1fr; }
  }
