/* ==========================================================================
   Tasova – visuaalinen viimeistelykerros
   Ladataan style.css:n ja queries.css:n jälkeen ja korvaa niiden asettelun.
   Värit: valkoinen / lämmin vaalea harmaa / grafiitti, keltainen vain korosteena.
   ========================================================================== */

:root {
  --c-ink: #1a1d20;
  --c-text: #2b2f33;
  --c-muted: #5b6168;
  --c-line: #e3e3de;
  --c-surface: #ffffff;
  --c-soft: #f6f6f4;
  --c-accent: var(--color-tasova);
  --c-on-dark: #ffffff;
  --c-on-dark-muted: #cfd4d9;
  --c-dark-line: rgba(255, 255, 255, 0.12);

  --page-max: 75rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --radius: 14px;
  --nav-h: 5.25rem;
  --shadow-card: 0 1px 2px rgba(26, 29, 32, 0.05);
  --shadow-hover: 0 18px 32px -20px rgba(26, 29, 32, 0.4);
}

/* ------------------------------------------------------------------ base */

body {
  color: var(--c-text);
  background: var(--c-surface);
  line-height: 1.65;
}

h1,
h2,
h3 {
  color: var(--c-ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.1vw, 3.3rem);
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: 0;
}

p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

a {
  color: inherit;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page-max));
  margin-inline: auto;
}

/* Näkyvä fokus: grafiitti vaalealla, keltainen tummalla taustalla */
a:focus,
button:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

nav :focus-visible,
#about :focus-visible,
footer :focus-visible {
  outline-color: var(--c-accent);
}

/* ------------------------------------------------------------------- nav */

nav {
  height: var(--nav-h);
  background: var(--c-ink);
}

.nav__container {
  width: min(100% - 2 * var(--gutter), var(--page-max));
  padding: 0;
}

.nav__logo {
  width: 9rem;
}

.nav__links {
  font-size: 1rem;
  gap: 2.25rem;
}

.nav__link {
  font-weight: 500;
}

.nav__contact {
  font-size: 1rem;
  gap: 1.75rem;
}

.nav__phone {
  font-weight: 600;
}

.nav__cta {
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
}

/* --------------------------------------------------------- section rhythm */

#about,
#profiles,
#gallery,
#references {
  padding: var(--section-y) 0;
  scroll-margin-top: var(--nav-h);
}

#profiles,
#references {
  background: var(--c-soft);
}

#about {
  background: var(--c-ink);
  color: var(--c-on-dark-muted);
}

/* Yhtenäinen osio-otsikko: keltainen viiva + label, H2, tarvittaessa ingressi */
.section-head {
  max-width: 44rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.section-label::before {
  content: "";
  flex: none;
  width: 2.25rem;
  height: 3px;
  border-radius: 2px;
  background: var(--c-accent);
}

#about .section-label {
  color: var(--c-on-dark-muted);
}

#about h2,
#about h3 {
  color: var(--c-on-dark);
}

/* ------------------------------------------------------------------ hero */

#header {
  display: block;
  min-height: 0;
  padding: calc(var(--nav-h) + clamp(2.25rem, 5vw, 4.5rem)) 0
    clamp(3rem, 6vw, 5rem);
  overflow: visible;
  background: var(--c-surface);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__content > p {
  max-width: 34rem;
  margin-top: 1rem;
}

.hero__content .section-label {
  margin-top: 0;
}

.hero__content .hero__lead {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--c-ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-ink);
  box-shadow: 0 1px 0 rgba(26, 29, 32, 0.12);
}

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

.hero__phone {
  margin: 0;
  font-size: 1.05rem;
}

.hero__phone a {
  display: inline-block;
  padding: 0.6rem 0.1rem 0.2rem;
  font-weight: 600;
  color: var(--c-ink);
  border-bottom: 2px solid var(--c-accent);
}

.hero__phone a:hover {
  color: var(--c-ink);
  border-bottom-color: var(--c-ink);
}

/* Kuva: maltillinen tumma liukuväri alareunassa ja pieni keltainen koriste */
.hero__media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 30rem;
}

.hero__media::before {
  content: "";
  position: absolute;
  left: -0.9rem;
  bottom: -0.9rem;
  width: 42%;
  height: 34%;
  border-radius: calc(var(--radius) + 4px);
  background: var(--c-accent);
}

.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: min(68vh, 36rem);
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: var(--c-soft);
  box-shadow: 0 30px 60px -34px rgba(26, 29, 32, 0.55);
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 29, 32, 0.42),
    rgba(26, 29, 32, 0) 42%
  );
  pointer-events: none;
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-settle 1.4s ease-out both;
}

/* Yksi rauhallinen liike sivun latautuessa, ei jatkuvaa animaatiota */
@keyframes hero-settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

/* ------------------------------------------------- miksi valita meidät */

.why__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.why__text > p {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--c-on-dark-muted);
}

.why__media {
  justify-self: end;
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 4 / 5;
  max-height: 32rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.why__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.highlight {
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid var(--c-dark-line);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.highlight h3 {
  font-size: 1.12rem;
}

.highlight p {
  margin-top: 0.6rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--c-on-dark-muted);
}

/* Luottamusmerkit osana osiota: samankorkuiset, kuvasuhde säilyy */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--c-dark-line);
}

.trust .section-label {
  margin-bottom: 0;
}

.trust__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.trust__list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-on-dark);
}

.trust__list img {
  width: auto;
  height: 3.5rem;
  border-radius: 8px;
  object-fit: contain;
}

/* ---------------------------------------------------------- henkilökortit */

.profiles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  gap: 1.5rem;
  max-width: none;
  margin: 0;
}

.profile__card {
  max-width: none;
  margin: 0;
  padding: 2rem 1.25rem 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.profile__card::before {
  display: none;
}

.profile__card:hover {
  transform: none;
  border-color: var(--c-line);
  box-shadow: var(--shadow-card);
}

.profile__image {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: auto;
  padding: 0;
  margin-bottom: 1.1rem;
  background: none;
  overflow: visible;
}

.profile__image img,
.profile__card:hover .profile__image img {
  width: 7.5rem;
  height: 7.5rem;
  border: 0;
  transform: none;
  box-shadow: 0 0 0 4px var(--c-surface), 0 0 0 5px var(--c-line);
}

.profile__content {
  padding: 0;
}

.profile__header {
  margin-bottom: 1.25rem;
}

.profile__name,
.profile__card:hover .profile__name {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-ink);
}

.profile__title {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-muted);
}

.profile__contact {
  gap: 0.6rem;
}

.profile__link {
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-surface);
  box-shadow: none;
  font-size: 0.95rem;
  color: var(--c-text);
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.profile__link:hover {
  transform: none;
  border-color: var(--c-ink);
  background: var(--c-soft);
  box-shadow: none;
  color: var(--c-ink);
}

.contact__icon {
  font-size: 1rem;
  min-width: 18px;
}

/* --------------------------------------------------------------- galleria */

.gallery__container {
  overflow: hidden;
}

#gallery .swiper-wrapper {
  height: auto;
  margin-top: 0;
  padding-bottom: 0;
}

/* Samat arvot kuin Swiperin asetuksissa (script.js: slidesPerView ja
   spaceBetween). Kun leveys on oikea jo CSS:ssä, kuvan koko ei muutu, kun
   Swiper käynnistyy tai Firebase vaihtaa kuvat. */
#gallery {
  --gallery-per-view: 1.15;
  --gallery-gap: 16px;
}

@media (min-width: 600px) {
  #gallery {
    --gallery-per-view: 2;
    --gallery-gap: 20px;
  }
}

@media (min-width: 1024px) {
  #gallery {
    --gallery-per-view: 3;
    --gallery-gap: 24px;
  }
}

.swiper-slide,
.swiper-slide-active {
  width: calc(
    (100% - (var(--gallery-per-view) - 1) * var(--gallery-gap)) /
      var(--gallery-per-view)
  );
  height: auto;
  margin-right: var(--gallery-gap);
  border: 0;
  border-radius: var(--radius);
  background: var(--c-soft);
  box-shadow: none;
  overflow: hidden;
  transition: none;
}

/* Kuvasuhde 4:5 prosenttitäytöllä aspect-ratio-ominaisuuden sijaan: iPadilla
   korkeus jäi venyneeksi, kun Swiper muutti kuvan leveyttä */
.swiper-slide::before {
  content: "";
  display: block;
  padding-top: 125%;
}

.swiper-slide:hover {
  box-shadow: none;
}

.swiper-slide img,
.swiper-slide:hover img,
.swiper-slide-active img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: none;
  transition: transform 0.4s ease;
}

/* Pisteet ja autoplay-kytkin keskitettynä samalle riville. Asettelu on
   kirjoitettu auki, koska vanha place-items: center keskitti rivin vain
   uusimmissa selaimissa ja muissa pisteet jäivät vasempaan reunaan. */
.gallery__container {
  place-items: normal;
}

.gallery__bottom {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2rem;
  width: 100%;
  min-height: 0;
  margin-top: 1.5rem;
  padding: 0;
}

.gallery__bottom .swiper-pagination {
  --swiper-pagination-bullet-size: 10px;
  --swiper-pagination-bullet-horizontal-gap: 5px;
  max-width: 100%;
  line-height: 1;
  transform: none;
}

.swiper-pagination-bullet {
  background: var(--c-ink);
  opacity: 0.25;
}

.swiper-pagination-bullet-active {
  background: var(--c-ink);
  opacity: 1;
}

/* Kytkin on nyt myös näppäimistöllä käytettävä (aiemmin display: none) */
.autoplay-toggle {
  position: relative;
  margin-left: 0;
}

.autoplay-toggle input[type="checkbox"] {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.autoplay-toggle label {
  font-size: 0.95rem;
  color: var(--c-muted);
}

.toggle-switch {
  background: #c9c9c3;
}

.autoplay-toggle input[type="checkbox"]:checked + label .toggle-switch {
  background: var(--c-ink);
}

.autoplay-toggle input[type="checkbox"]:checked + label .toggle-slider {
  background: var(--c-accent);
}

.autoplay-toggle label:hover .toggle-switch {
  box-shadow: none;
}

.autoplay-toggle input[type="checkbox"]:focus-visible + label .toggle-switch {
  outline: 3px solid var(--c-ink);
  outline-offset: 3px;
}

/* ------------------------------------------------------------- referenssit */

.references__container {
  padding: 0;
}

.references__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 0;
  font-size: 1rem;
}

.references__list,
.references__list:hover {
  display: flex;
  flex-direction: column;
  max-width: none;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow-card);
  transform: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.references__list::before {
  content: "";
  width: 2rem;
  height: 3px;
  margin-bottom: 1.1rem;
  border-radius: 2px;
  background: var(--c-accent);
}

.references__list h3 {
  margin-bottom: 0.5rem;
  font-size: 1.12rem;
  line-height: 1.35;
}

.references__list p {
  font-size: 0.98rem;
  line-height: 1.55;
}

.references__list p:nth-of-type(1) {
  margin-bottom: 1.1rem;
}

/* Tilaaja ja vuosi kortin alareunaan, jolloin kortit näyttävät tasakorkeilta */
.references__list p:nth-of-type(2) {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--c-line);
}

.references__list p:nth-of-type(2),
.references__list p:nth-of-type(3) {
  font-size: 0.9rem;
  color: var(--c-muted);
}

/* ------------------------------------------------------------------ footer */

footer {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.footer__container {
  width: min(100% - 2 * var(--gutter), var(--page-max));
  margin-inline: auto;
  padding: 0 0 2rem;
  border-top: 0;
  gap: 2.5rem;
}

.footer__left {
  gap: 1.25rem;
}

.footer__head h2,
.footer__title {
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  color: var(--c-on-dark);
}

.footer__btn {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.6rem;
}

footer .nav__link {
  font-size: 0.95rem;
}

.footer__links {
  gap: 1.75rem;
}

.footer__contact {
  gap: 2.5rem;
  color: var(--c-on-dark-muted);
}

.footer__contact h3 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-on-dark);
}

.footer__contact p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer__contact a {
  display: inline-block;
  padding-block: 0.3rem;
  white-space: nowrap;
}

.footer__bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--c-dark-line);
  font-size: 0.9rem;
}

/* ------------------------------------------------------ rekisteriseloste */

header:not(#header) {
  display: block;
  min-height: 0;
  padding: calc(var(--nav-h) + clamp(2rem, 4vw, 3.5rem)) 0
    clamp(3rem, 6vw, 5rem);
}

.register__container {
  position: relative;
  width: min(100% - 2 * var(--gutter), 50rem);
  margin-inline: auto;
  padding: 0;
}

.register__container h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.register__container p {
  font-size: 1rem;
}

/* ------------------------------------------------- tarjouslomakkeen fokus */

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px rgba(249, 241, 55, 0.7);
}

/* ---------------------------------------------------------- hover (desktop) */

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover,
  .nav__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -12px rgba(26, 29, 32, 0.55);
  }

  .profile__card:hover,
  .references__list:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
  }

  .swiper-slide:hover img {
    transform: scale(1.04);
  }
}

/* ------------------------------------------------------------ scroll reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- tabletti */

@media (max-width: 64em) {
  :root {
    --nav-h: 4.5rem;
  }

  .nav__logo {
    width: 8rem;
  }

  .btn__mobile-nav {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  /* Mobiilivalikko: rauhallinen tumma paneeli ilman kääntöanimaatiota */
  .nav__links {
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    padding: 0.5rem 0 1rem;
    background: var(--c-ink);
    border-top: 1px solid var(--c-dark-line);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6);
  }

  .nav-open .nav__links {
    display: block;
    transition: none;
  }

  .nav__links li {
    height: auto;
    opacity: 1;
    transform: none;
    animation: none;
    box-shadow: none;
  }

  .nav__links li a {
    padding: 0.95rem var(--gutter);
    border-top: 0;
    background: transparent;
    font-size: 1.05rem;
  }

  .nav__link::before {
    display: none;
  }

  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .references__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .references__container,
  .gallery__container p {
    padding: 0;
  }

  .profile__image img,
  .profile__card:hover .profile__image img {
    width: 6.5rem;
    height: 6.5rem;
  }

  footer .nav__link {
    font-size: 0.95rem;
  }
}

@media (max-width: 68em) {
  .profiles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 56em) {
  .hero__inner,
  .why__top {
    grid-template-columns: 1fr;
  }

  .hero__media,
  .why__media {
    justify-self: stretch;
    max-width: none;
  }

  .hero__frame,
  .why__media {
    aspect-ratio: 16 / 10;
    max-height: 26rem;
  }

  .why__media img {
    object-position: 50% 30%;
  }
}

/* Tabletti ja kapea työpöytä: footer kahteen kerrokseen kolmen ahtaan
   sarakkeen sijaan */
@media (min-width: 39.01em) and (max-width: 78em) {
  .footer__container {
    flex-direction: column;
  }

  .footer__left-main {
    gap: 1.5rem;
  }

  .footer__contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 2rem;
    border-top: 1px solid var(--c-dark-line);
  }
}

/* ----------------------------------------------------------------- mobiili */

@media (max-width: 40em) {
  h1,
  h2 {
    color: var(--c-ink);
    line-height: 1.2;
  }

  /* sized so that "Korjausrakentaminen," fits on one line down to 320 px */
  h1 {
    font-size: clamp(1.45rem, calc(8.6vw - 3.5px), 2rem);
  }

  p {
    font-size: 1rem;
  }

  .hero__media::before {
    left: -0.5rem;
    bottom: -0.5rem;
  }

  .hero__frame,
  .why__media {
    aspect-ratio: 4 / 3;
  }

  .hero__actions {
    gap: 0.75rem 1.5rem;
  }

  .btn {
    padding: 0.9rem 1.6rem;
  }

  .highlights,
  .profiles__grid,
  .references__gallery {
    grid-template-columns: 1fr;
  }

  .profile__card {
    padding: 1.75rem 1.25rem 1.25rem;
  }

  .profile__image img,
  .profile__card:hover .profile__image img {
    width: 6rem;
    height: 6rem;
  }

  .profile__name {
    font-size: 1.15rem;
  }

  .profile__title {
    font-size: 0.95rem;
  }

  .profile__link {
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .highlight p {
    font-size: 1rem;
  }

  .contact__icon {
    font-size: 1rem;
  }

  .references__list h3 {
    font-size: 1.08rem;
  }

  .references__list p {
    font-size: 1rem;
  }

  .references__list p:nth-of-type(2),
  .references__list p:nth-of-type(3) {
    font-size: 0.9375rem;
  }

  .gallery__bottom {
    gap: 1rem;
  }

  .footer__container {
    padding-bottom: 1.5rem;
    gap: 2rem;
  }

  .footer__head h2,
  .footer__title {
    color: var(--c-on-dark);
  }

  .footer__contact {
    padding: 0;
    gap: 1.75rem;
  }

  .footer__contact h3 {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .footer__contact p {
    font-size: 0.95rem;
  }

  .footer__links {
    margin-top: 0;
  }
}

/* ------------------------------------------------------ vähennetty liike */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__frame img {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
