/* ========================= */
/* COOKIE BANNER */
/* ========================= */
.cookie-banner{
  position:fixed;
  left:24px;
  right:24px;
  bottom:4px;
  z-index:100000;
  background:#111;
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 54px rgba(0,0,0,.34);
  border-radius:14px;
  overflow:hidden;
  transform:translateY(14px);
  opacity:0;
  transition:opacity .34s ease, transform .34s ease;
}

.cookie-banner.is-visible{
  opacity:1;
  transform:translateY(0);
}

.cookie-banner[hidden]{
  display:none;
}

.cookie-banner__content{
  width:min(1180px, 100%);
  margin:0 auto;
  padding:8px 14px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
}

.cookie-banner__icon{
  width:56px;
  height:56px;
  flex:0 0 56px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#e68c34;
  background:rgba(230,140,52,.12);
  border:1px solid rgba(230,140,52,.24);
}

.cookie-banner__icon svg{
  width:34px;
  height:34px;
  display:block;
}

.cookie-banner__text{
  max-width:640px;
  flex:1;
}

.cookie-banner__text h2{
  margin:0 0 3px;
  font-size:.9rem;
  line-height:1.1;
  font-weight:800;
  color:#fff;
}

.cookie-banner__text p{
  margin:0;
  font-size:.78rem;
  line-height:1.32;
  color:rgba(255,255,255,.76);
}

.cookie-banner__text a{
  display:inline-flex;
  margin-top:3px;
  color:#e68c34;
  font-size:.8rem;
  font-weight:700;
  text-decoration:none;
}

.cookie-banner__text a:hover{
  text-decoration:underline;
}

.cookie-banner__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
  margin-left:auto;
}

.cookie-banner__btn{
  min-height:34px;
  padding:0 12px;
  border:0;
  border-radius:999px;
  background:#e68c34;
  color:#fff;
  font:inherit;
  font-size:.78rem;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}

.cookie-banner__btn:hover{
  transform:translateY(-1px);
  background:#ee9540;
}

.cookie-banner__btn--ghost{
  background:transparent;
  color:rgba(255,255,255,.86);
  border:1px solid rgba(255,255,255,.18);
}

.cookie-banner__btn--ghost:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.28);
}

/* Cookie settings buttons on policy page */
.cookie-settings-actions{
  display:flex;
  gap:12px;
  margin-top:16px;
  flex-wrap:wrap;
}

.cookie-settings-actions .cookie-banner__btn--ghost{
  color:#111;
  border-color:rgba(17,17,17,.22);
}

.cookie-settings-actions .cookie-banner__btn--ghost:hover{
  background:rgba(17,17,17,.06);
  border-color:rgba(17,17,17,.34);
}
@media (max-width:760px){
  .cookie-banner{
    left:8px;
    right:8px;
    bottom:6px;
    border-radius:14px;
    backdrop-filter:blur(12px);
  }

  .cookie-banner__content{
    padding:8px 9px;
    display:grid;
    grid-template-columns:34px minmax(0, 1fr);
    grid-template-areas:
      "icon text"
      "actions actions";
    align-items:center;
    column-gap:8px;
    row-gap:6px;
  }

  .cookie-banner__icon{
    grid-area:icon;
    width:34px;
    height:34px;
    flex:0 0 34px;
  }

  .cookie-banner__icon svg{
    width:18px;
    height:18px;
  }

  .cookie-banner__text{
    grid-area:text;
    max-width:100%;
  }

  .cookie-banner__text h2{
    font-size:1rem;
    margin:0 0 1px;
    line-height:1;
  }

  .cookie-banner__text p{
    font-size:.88rem;
    line-height:1.16;
    color:transparent;
    position:relative;
    min-height:2.05em;
    margin:0;
  }

  .cookie-banner__text p::before{
    content:"Käytämme evästeitä sivun toimintaan ja analytiikkaan.";
    position:absolute;
    inset:0;
    color:rgba(255,255,255,.82);
  }

  .cookie-banner__text a{
    display:none;
  }

  .cookie-banner__actions{
    grid-area:actions;
    width:100%;
    display:flex;
    flex-direction:row;
    gap:6px;
    margin:0;
  }

  .cookie-banner__btn{
    flex:1;
    width:100%;
    min-height:40px;
    padding:0 10px;
    font-size:.82rem;
    font-weight:800;
    border-radius:999px;
  }
}
body {
  font-family: "Inter", sans-serif;
  background: #0f0f10;
  color: #111;
  overflow-x: hidden;
  font-size: 17px;
}

/* Headings font */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================= */
/* KEYBOARD ACCESSIBILITY */
/* ========================= */

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100001;
  transform: translateY(-140%);
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #e68c34;
  outline-offset: 4px;
}

.nav-link:focus-visible,
.nav-phone:focus-visible,
.nav-accent-ball:focus-visible,
.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.references-more-btn:focus-visible,
.news-arrow:focus-visible,
.news-card:focus-visible,
.news-list-overlay-link:focus-visible,
.contact-form-submit:focus-visible,
.cookie-banner__btn:focus-visible {
  outline: 3px solid #e68c34;
  outline-offset: 5px;
}

.news-list-item:focus-within,
.news-card:focus-visible,
.reference-gallery-arrow:focus-visible,
.news-article-side-action:focus-visible,
.news-article-modal__close:focus-visible {
  box-shadow: 0 0 0 4px rgba(230, 140, 52, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 42px 120px;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.4)),
    url("photos/optimized/20220828_113042.webp") center center / cover no-repeat;
  transform: none;
  transform-origin: center center;
  animation: none;
  will-change: auto;
  z-index: 0;
}

@keyframes heroBgUnzoom {
  0% {
    transform: scale(1.24);
  }
  100% {
    transform: scale(1);
  }
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.42) 32%,
    rgba(0, 0, 0, 0.14) 62%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: var(--hero-after-opacity, 0);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.12s linear;
  will-change: opacity;
}

.hero-open-fade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 1;
  pointer-events: none;
  z-index: 4;
  animation: heroOpenFadeOut 0.65s ease-out forwards;
  will-change: opacity;
}

@keyframes heroOpenFadeOut {
  0% {
    opacity: 1;
  }
  38% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.hero-frame-fill {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  opacity: 1;
  pointer-events: none;
  z-index: 2;
  animation: heroIntroFillFade 0.28s ease-out forwards;
  will-change: opacity;
}

.hero-side-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 100%;
  background: #000;
  z-index: 3;
  pointer-events: none;
  transform: translateX(0);
  animation: heroSidePanelSlideOut 3s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
  will-change: transform;
}

.hero-side-panel-right {
  left: auto;
  right: 0;
  transform: translateX(0);
  animation: heroSidePanelSlideOutRight 3s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
}

.hero-side-panel-top {
  left: 0;
  right: auto;
  top: 0;
  width: 100%;
  height: 60px;
  animation: heroSidePanelSlideOutTop 3s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
}

.hero-side-panel-bottom {
  left: 0;
  right: auto;
  top: auto;
  bottom: 0;
  width: 100%;
  height: 60px;
  animation: heroSidePanelSlideOutBottom 3s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
}

@keyframes heroSidePanelSlideOut {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-80px);
  }
}

@keyframes heroSidePanelSlideOutRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(80px);
  }
}

@keyframes heroSidePanelSlideOutTop {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-80px);
  }
}

@keyframes heroSidePanelSlideOutBottom {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(80px);
  }
}

@keyframes heroIntroFillFade {
  0% {
    opacity: 1;
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 0;
}

.navbar,
.hero-content {
  position: relative;
  z-index: 5;
}

.reveal-text span {
  display: inline-block;
  opacity: 0;
  transform: translateX(-16px);
  filter: blur(6px);
  animation: letterIn 0.45s ease forwards;
}

.hero .reveal-text span {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

.hero-open-fade,
.hero-frame-fill,
.hero-side-panel {
  display: none;
}

@keyframes letterIn {
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 22px 18px 130px;
    min-height: 100svh;
    height: 100svh;
  }

  .hero-side-panel {
    width: 28px;
    transform: translateX(0);
    animation: heroSidePanelSlideOutMobile 5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
    will-change: transform;
  }

  .hero-side-panel-right {
    animation: heroSidePanelSlideOutRightMobile 5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
  }

  .hero-side-panel-top {
    width: 100%;
    height: 28px;
    animation: heroSidePanelSlideOutTopMobile 5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
  }

  .hero-side-panel-bottom {
    width: 100%;
    height: 28px;
    animation: heroSidePanelSlideOutBottomMobile 5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
  }

  @keyframes heroSidePanelSlideOutMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-38px);
    }
  }

  @keyframes heroSidePanelSlideOutRightMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(38px);
    }
  }

  @keyframes heroSidePanelSlideOutTopMobile {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-38px);
    }
  }

  @keyframes heroSidePanelSlideOutBottomMobile {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(38px);
    }
  }

  .hero-content {
    padding-top: 40px;
    width: 100%;
    max-width: 100%;
    padding-left: 6px;
    padding-right: 6px;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .hero-content h1,
  .hero-content .reveal-text {
    width: 100%;
    max-width: 100%;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
  }

  .hero-content h1 {
    font-size: clamp(3.05rem, 13vw, 4.85rem);
    white-space: normal;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 0.94;
    letter-spacing: -0.055em;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 span {
    white-space: nowrap;
  }

  .hero-content h1 .hero-oy {
    display: none;
  }

  .hero-kicker {
    font-size: 0.84rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
    max-width: 100%;
    white-space: normal;
  }

  .hero-subtext {
    font-size: 0.98rem;
    line-height: 1.45;
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 760px) {
  .hero-bg {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.4)),
      url("/photos/optimized/IMG-20250623-WA0015.webp") !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
}
/* 🔥 NAVBAR */
.navbar {
  position: fixed;
  top: 26px;
  left: 0;
  width: 100%;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  gap: 28px;
background: #f4f1ed;  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: none;
  z-index: 99999;
  opacity: 0;
  transform: translateY(-24px) scale(0.985);
}

.navbar.navbar-intro {
  transition:
    opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.25s;
  will-change: opacity, transform;
}

.navbar.navbar-intro.navbar-intro-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.navbar.navbar-intro.navbar-intro-visible.navbar-fade-out {
  opacity: 0;
  pointer-events: none;
}

/* 🔥 NAVBAR progressive curve effect */

/* 🔥 VASEN */
  .nav-left {
    display: flex;
    align-items: center;
    gap: 0;
  }

/* 🔥 LOGO */
  .logo-img {
    width: 120px;
    height: auto;
    object-fit: contain;
  }

/* NAV CENTER */
.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex: 1;
}

.nav-link {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.22s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #e68c34;
}

.nav-link.active {
  font-weight: 700;
}

/* RIGHT */
.nav-right {
  display: flex;
  align-items: center;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #e68c34;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-phone:hover {
  background: #ee9540;
  transform: translateY(-1px);
}

/* 🔥 VASEN */
  .nav-accent-ball {
    width: 120px;
    height: 120px;
    border-radius: 50%;
background: #f4f1ed;    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 120px;
    transform: translateX(-14px);
  }

  .navbar.navbar-flip-down {
  transform: perspective(1200px) rotateX(5deg);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center top;
  will-change: transform;
}

.navbar.navbar-flip-up {
  transform: perspective(1200px) rotateX(-4deg);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center top;
  will-change: transform;
}
.navbar {
  transition: opacity 0.4s ease;
}

.navbar.navbar-fade-out {
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
}
/* 🔥 TABLET */
@media (max-width: 1100px) {
  .navbar {
    top: 22px;
    height: 66px;
    padding: 0 18px;
  }

  .logo-img {
    width: 90px;
    height: auto;
  }

  .nav-center {
    gap: 22px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .nav-phone {
    height: 40px;
    padding: 0 16px;
    font-size: 0.82rem;
  }
  .nav-accent-ball {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
    transform: translateX(-8px);
  }
}

@media (max-width: 760px) {
  .navbar {
    top: 18px;
    height: 84px;
    padding: 10px 14px;
    gap: 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    overflow: visible;
  }

  .nav-left {
    justify-self: start;
    min-width: 0;
  }

  .logo-img {
    width: 70px;
    height: auto;
  }

  .nav-accent-ball {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
    transform: translateX(0);
  }

  .nav-right {
    justify-self: center;
    min-width: 0;
    display: flex;
    align-items: center;
  }

  .nav-phone {
    height: 38px;
    padding: 0 10px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .nav-burger {
    display: inline-flex;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    justify-self: end;
  }

  .nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 999px;
    transition: transform 0.26s ease, opacity 0.22s ease;
  }

  .navbar.is-menu-open .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.is-menu-open .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  .navbar.is-menu-open .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-center {
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px 16px;
    background: #f4f1ed;
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.26s ease, transform 0.26s ease;
    z-index: 99998;
  }

  .navbar.is-menu-open .nav-center {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 0.94rem;
    width: 100%;
  }

  .navbar.navbar-flip-down,
  .navbar.navbar-flip-up {
    transform: none;
  }

  .navbar {
    opacity: 0;
    transform: translateY(-16px) scale(0.992);
  }

  .navbar.navbar-intro.navbar-intro-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .navbar.navbar-intro.navbar-intro-visible.navbar-fade-out {
    opacity: 0;
    pointer-events: none;
  }
}


@media (max-width: 760px) {

  .nav-center .nav-link {

    font-size: 1.25rem;

    line-height: 1.25;

    font-weight: 700;

  }

  .nav-phone {

    font-size: inherit;

  }

}

/* HERO spacing */
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding-top: 160px;
}
.hero-kicker {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-subtext {
  font-size: 1.18rem;
  line-height: 1.6;
  opacity: 0.9;
}

.intro-card-wrap {
  position: relative;
  z-index: 3;
  margin-top: -135px;
  padding: 0 32px;
  transform: translateY(92px);
  opacity: 0.96;
  will-change: transform, opacity;
}

.intro-card {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  background: #f4f1ed;
  border-radius: 0;
  padding: 70px 72px 180px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  opacity: 0.92;
  transform: scale(0.94);
  transform-origin: center top;
  transition: transform 0.14s linear, opacity 0.14s linear;
  will-change: transform, opacity;
}

.intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 20%, rgba(0, 0, 0, 0.02) 0, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 75% 60%, rgba(0, 0, 0, 0.018) 0, rgba(0, 0, 0, 0.018) 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px;
  pointer-events: none;
  opacity: 0.9;
}

.intro-card > * {
  position: relative;
  z-index: 1;
}

.about-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 96px;
}

.about-image-box {
  border-radius: 18px;
  background: #f3f4f6;
  box-shadow: 0 18px 36px rgba(15, 15, 16, 0.08);
  position: relative;
  overflow: visible;
  aspect-ratio: 4 / 3;
  opacity: 0;
  transform: translate3d(0, 70px, 0);
  transition:
    opacity 0.8s ease,
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.about-image-box.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.about-image-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.about-image-box img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  transform: scale(0.96);
  transform-origin: center center;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  border-radius: 18px;
}

.about-overlay-box {
  position: absolute;
  bottom: -55%;
  left: 50%;
  width: 85%;
  height: 85%;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 26px 24px 6px;
  opacity: 0;
  transform: translateX(-50%) translateY(42px);
  transition: opacity 0.95s ease, transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image-box.is-visible .about-overlay-box {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.about-image-box.is-visible img {
  transform: scale(1);
}

.about-overlay-box h4 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #111;
  letter-spacing: 0.01em;
}

.about-overlay-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-overlay-box li {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 6px;
}

@media (max-width: 1100px) {
  .intro-card {
    padding: 56px 34px 110px;
    width: min(100%, calc(100% - 24px));
  }

  .intro-card p {
    font-size: 1.14rem;
    line-height: 1.8;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .about-image-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-image-box {
    overflow: hidden;
  }

  .about-image-inner {
    overflow: hidden;
  }

  .about-overlay-box {
    position: absolute;
    inset: auto 0 0 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    opacity: 1;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    padding: 24px 22px 20px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.58) 55%,
      rgba(0, 0, 0, 0.12) 100%
    );
  }

  .about-overlay-box h4 {
    color: #fff;
  }

  .about-overlay-box li {
    color: rgba(255, 255, 255, 0.92);
  }
}



@media (max-width: 760px) {
  .hero {
    padding: 22px 18px 130px;
    min-height: 100svh;
    height: 100svh;
  }

.hero-side-panel {
  width: 28px;
  transform: translateX(0);
  animation: heroSidePanelSlideOutMobile 5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
  will-change: transform;
}

.hero-side-panel-right {
  animation: heroSidePanelSlideOutRightMobile 5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
}

.hero-side-panel-top {
  width: 100%;
  height: 28px;
  animation: heroSidePanelSlideOutTopMobile 5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
}

.hero-side-panel-bottom {
  width: 100%;
  height: 28px;
  animation: heroSidePanelSlideOutBottomMobile 5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
}

@keyframes heroSidePanelSlideOutMobile {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-38px);
  }
}


@keyframes heroSidePanelSlideOutRightMobile {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(38px);
  }
}

@keyframes heroSidePanelSlideOutTopMobile {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-38px);
  }
}

@keyframes heroSidePanelSlideOutBottomMobile {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(38px);
  }
}


  .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px;
  }

  .logo-img {
    width: 74px;
    height: 74px;
  }



  .hero-content {
    padding-top: 40px;
  }

  .intro-card-wrap {
    margin-top: 0;
    padding: 0 12px;
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
  }

  .intro-card {
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none !important;
    opacity: 1 !important;
    overflow: visible;
    transition: none;
    will-change: auto;
  }

  .intro-card h2,
  .section-heading h3,
  .contact-box h3 {
    line-height: 1.04;
  }

  .intro-card p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .about-image-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 8px;
  }

  .about-image-box {
    width: 100%;
    height: clamp(285px, 78vw, 380px);
    min-height: 0;
    border-radius: 18px;
    overflow: visible;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
    background: #111;
    aspect-ratio: auto;
    margin-bottom: 64px;
    opacity: 0;
    transform: translate3d(0, 46px, 0);
    transition:
      opacity 0.72s ease,
      transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  .about-image-inner {
    width: 100%;
    height: 100%;
    overflow: visible;
    position: relative;
  }

  .about-image-box img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    border-radius: 18px;
    transform: none !important;
    transition: none;
    will-change: auto;
  }

  .about-overlay-box {
    position: absolute;
    left: 50%;
    bottom: -92px;
    width: calc(100% - 28px);
    height: auto;
    min-height: 0;
    opacity: 1;
    transform: translateX(-50%) !important;
    display: block;
    padding: 18px 16px 16px;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.97);
    transition: none;
  }

  .about-image-box.is-visible .about-overlay-box {
    opacity: 1;
    transform: translateX(-50%) !important;
  }

  .about-overlay-box h4 {
    font-size: 1.2rem;
    line-height: 1.1;
    margin-bottom: 9px;
    color: #111;
  }

  .about-overlay-box ul {
    display: grid;
    gap: 3px;
    padding: 0;
    margin: 0;
    background: transparent;
  }

  .about-overlay-box li {
    font-size: 0.82rem;
    line-height: 1.32;
    color: #333;
    margin-bottom: 0;
  }

  
  .ref-img {
    height: 220px;
  }

  .ref-img-tall {
    height: 340px;
  }

  .ref-meta {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .ref-meta p {
    font-size: 0.94rem;
  }



  .about-overlay-box span {
    font-size: 1.1rem;
  }



} 

.services {

  padding: 110px 32px 0px;

  background: #f4f1ed;

  color: #111;

  position: relative;

  overflow: hidden;

  isolation: isolate;

}

.services-map-bg {

  position: absolute;

  inset: 0;

  width: 100vw;

  margin-right: calc(-50vw + 50%);

  min-height: 200px;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  pointer-events: none;

  z-index: 0;

  opacity: 0.22;

}

.services-map-image {
  position: absolute;
  top: 54%;
  height: 230vh;
  width: auto;
  object-fit: contain;
  transform: translateY(-50%);
  filter: grayscale(100%) brightness(2.3);
}

.services-map-image-left {
  left: -3%;
  top: 53.5%;
  height: 190vh;
}

.services-map-image-flipped {
  left: -3%;
  top: calc(50% + 190vh);
  transform: translateY(-50%) scaleY(-1);
  height: 190vh;
  opacity: 0.95;
}

.services > *:not(.services-map-bg) {

  position: relative;

  z-index: 1;

}


.section-heading {
  width: min(1320px, 100%);
  margin: 0 auto 42px;
}

.dark-chip {
  background: rgba(230, 136, 52, 0.12);
  color: #d97b24;
}

.section-heading h3 {
  max-width: 700px;
}

.service-grid {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #18191b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 34px;
  min-height: 240px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
}

.service-card h4 {
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 700;
}

.service-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.75;
}

.news {
  padding: 110px 32px 90px;
  background: #0f0f10;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.news::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(42vw, 520px);
  background:
    linear-gradient(to bottom, rgba(15,15,16,1) 0%, rgba(15,15,16,0) 18%, rgba(15,15,16,0) 82%, rgba(15,15,16,1) 100%),
    url("photos/optimized/news-map-bg.webp") left center / cover no-repeat;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.news::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 20%, rgba(0, 0, 0, 0.02) 0, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 75% 60%, rgba(0, 0, 0, 0.018) 0, rgba(0, 0, 0, 0.018) 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px;
  pointer-events: none;
  opacity: 0.9;
}

.news > * {
  position: relative;
  z-index: 1;
}

.news-shell {
  width: min(1380px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 56px;
  align-items: center;
}

.news-left h3 {
  font-size: clamp(2.5rem, 4.6vw, 3.8rem);
  line-height: 0.94;
  margin: 18px 0 28px;
  color: #fff;
  letter-spacing: -0.02em;
}

.news-left p {
  max-width: 420px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
}

.news-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.news-mini-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.news-card {
  position: relative;
  height: 580px;
  min-height: unset;
  max-height: 580px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 15, 16, 0.08);
  background: #1a1b1d;
}

.news-mini-grid .news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateZ(0) scale(1.14);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

.news-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.62) 30%, rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0) 78%);
  pointer-events: none;
  opacity: 0.78;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.news-card:hover .news-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.news-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 24px 24px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.news-card-content h4 {
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.news-card-content p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(26px);
  transition: max-height 0.62s ease, opacity 0.46s ease, transform 0.62s ease, margin-top 0.62s ease;
  margin-top: 0;
}

.news-card:hover .news-card-content p {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 12px;
}

.news-card {
  position: relative;
}

/* Ylä + ala */
.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  background:
    linear-gradient(#e68c34, #e68c34) top left / 0% 2px no-repeat,
    linear-gradient(#e68c34, #e68c34) bottom right / 0% 2px no-repeat;
  transition: background-size 0.5s ease;
}

/* Vasen + oikea */
.news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  background:
    linear-gradient(#e68c34, #e68c34) top right / 2px 0% no-repeat,
    linear-gradient(#e68c34, #e68c34) bottom left / 2px 0% no-repeat;
  transition: background-size 0.5s ease;
}

/* Hover */
.news-card:hover::before {
  background-size: 100% 2px, 100% 2px;
}

.news-card:hover::after {
  background-size: 2px 100%, 2px 100%;
}
.news-arrow {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.news-arrow span {
  display: inline-block;
  line-height: 1;
  transform: translateX(1px);
  transition: transform 0.25s ease;
}

.news-arrow:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 20px 44px rgba(0,0,0,0.42);
  background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  border-color: rgba(255,255,255,0.24);
}

.news-arrow:hover span {
  transform: rotate(-45deg);
}

@media (max-width: 1100px) {
  .news-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .news-right {
    justify-content: stretch;
  }

}

@media (max-width: 760px) {
  .news {
    padding: 120px 14px 52px;
    margin-top: 72px;
  }

  .news-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }

  .news-left {
    width: 100%;
  }

  .news-left h3 {
    font-size: 2.1rem;
    line-height: 0.96;
    margin: 0 0 12px;
  }

  .news-left p {
    max-width: none;
    font-size: 0.94rem;
    line-height: 1.58;
    color: rgba(255,255,255,0.76);
    margin: 0;
  }

  .news-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }

  .news-mini-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-card {
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: 18px;
    overflow: hidden;
  }

  .news-mini-grid .news-card img {
    width: 100%;
    height: 220px;
    min-height: 220px;
    object-fit: cover;
    object-position: center center;
    transform: none;
  }

  .news-mini-grid .news-card.news-card-portrait img {
    height: 360px;
    min-height: 360px;
    object-fit: cover;
    object-position: center top;
  }

  .news-card::before,
  .news-card::after {
    display: none;
  }

  .news-card-overlay {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.44) 36%,
      rgba(0, 0, 0, 0.12) 66%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .news-card-content {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 18px 20px;
  }

  .news-card-content h4,
  .news-card-content h2 {
    font-size: 1.18rem;
    line-height: 1.16;
    margin-bottom: 0;
    max-width: 92%;
  }

  .news-card-content p {
    display: none;
  }

  .news-card:hover .news-card-content p {
    display: none;
  }

  .news-card:hover .news-card-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  .news-arrow {
    width: 60px;
    height: 60px;
    align-self: center;
    font-size: 1.7rem;
  }

  .news::after {
    width: min(40vw, 140px);
    background-position: left center;
    opacity: 0.16;
  }
}
.references {
  padding: 52px 8px 110px;
  background: #0f0f10;
}

.references-shell {
  width: 100%;
  margin: 0;
}

.references-heading {
  width: 100%;
  margin: 0 0 28px;
  padding: 0 8px;
}

.references-heading h3 {
  color: #fff;
  font-size: clamp(2.1rem, 3.7vw, 3.2rem);
  line-height: 0.96;
}

.references-grid-simple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
  align-items: stretch;
}

.ref-img {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
  background: #1a1b1d;
  isolation: isolate;
}

.ref-img-tall {
  width: 100%;
  height: 520px;
}

.ref-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.6s ease;
  backface-visibility: hidden;
}

.ref-img:hover img {
  transform: translate3d(0, 0, 0) scale(1.08);
}

.ref-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.52) 34%,
    rgba(0, 0, 0, 0.12) 64%,
    rgba(0, 0, 0, 0) 82%
  );
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  z-index: 1;
}

.ref-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.ref-meta p {
  font-size: 1.12rem;
  line-height: 1.32;
  font-weight: 600;
  color: #fff;
}

.ref-img:hover .ref-overlay,
.ref-img:hover .ref-meta {
  opacity: 1;
  transform: translateY(0);
}

.references-cta {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.references-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #e68c34;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.references-more-btn:hover {
  transform: translateY(-2px);
  background: #ee9540;
}

@media (max-width: 760px) {
  .references {
    padding: 48px 12px 80px;
  }

  .references-heading {
    margin-bottom: 20px;
    padding: 0 4px;
  }

  .references-heading h3 {
    font-size: 2.1rem;
    line-height: 1;
  }

  .references-grid-simple {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 0;
  }

  .ref-img,
  .ref-img-tall {
    width: 100%;
    height: 280px;
    border-radius: 18px;
    opacity: 0;
    transform: translate3d(0, 42px, 0);
    transition:
      opacity 0.72s ease,
      transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  .ref-img.is-visible,
  .ref-img-tall.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .ref-img img,
  .ref-img-tall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none !important;
  }

  .ref-overlay {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.6) 38%,
      rgba(0, 0, 0, 0.15) 72%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  .ref-meta {
    left: 14px;
    right: 14px;
    bottom: 14px;
    opacity: 1;
    transform: translateY(0);
  }

  .ref-meta p {
    font-size: 1rem;
    line-height: 1.35;
  }

  .references-cta {
    margin-top: 28px;
  }

  .references-more-btn {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
  }
}


.cta-split {
  width: min(1320px, 100%);
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 620px;
  isolation: isolate;
}

.cta-left {
  position: relative;
  width: min(100%, 980px);
  height: 620px;
  overflow: hidden;
  background: #111;
}

.cta-left img {
  width: 100%;
  height: 185%;
  object-fit: cover;
  object-position: center center;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  display: block;
}

.cta-left-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.78), rgba(0,0,0,0.26)),
    linear-gradient(to top, rgba(0,0,0,0.38), rgba(0,0,0,0.1));
}

.cta-left-content {
  position: absolute;
  left: 54px;
  bottom: 54px;
  color: #fff;
  max-width: 560px;
  z-index: 2;
}

.cta-left-content h3 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  margin-bottom: 22px;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e68c34;
  color: #fff;
  padding: 14px 24px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease;
  background: #111;
color: #fff;
border: 1px solid rgba(255,255,255,0.72);
}

.cta-primary:hover {
  transform: translateY(-2px);
  background: #ee9540;
}

.cta-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 52px 42px;
  width: 390px;
  box-shadow: 0 26px 54px rgba(0,0,0,0.18);
  z-index: 3;
}

.cta-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 12px;
}

.cta-right h4 {
  font-size: 2rem;
  line-height: 1.05;
  margin-bottom: 22px;
  color: #111;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease;
}

.cta-secondary:hover {
  transform: translateY(-2px);
  background: #e68c34;
}

@media (max-width: 1100px) {
  .cta-split {
    min-height: 560px;
  }

  .cta-left {
    width: calc(100% - 150px);
    height: 560px;
  }

  .cta-right {
    width: 340px;
    padding: 42px 32px;
  }

  .cta-right h4 {
    font-size: 1.7rem;
  }
}

@media (max-width: 900px) {
  .cta-split {
    flex-direction: column;
    min-height: 0;
    gap: 0;
  }

  .cta-left {
    width: 100%;
    height: 420px;
  }

  .cta-left img {
    height: 150%;
  }

  .cta-left-content {
    left: 22px;
    right: 22px;
    bottom: 58px;
    max-width: none;
    z-index: 4;
  }

  .cta-left-content h3 {
    font-size: 2.35rem;
    margin-bottom: 16px;
  }

  .cta-primary {
    padding: 13px 18px;
    font-size: 0.94rem;
  }

  .cta-right {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: calc(100% - 28px);
    margin: -18px auto 0;
    padding: 28px 22px;
  }

  .cta-right h4 {
    font-size: 1.55rem;
    margin-bottom: 18px;
  }

  .cta-secondary {
    width: 100%;
    padding: 14px 18px;
  }
}

@media (max-width: 640px) {
  .cta-split {
    width: calc(100% - 16px);
  }

  .cta-left {
    height: 360px;
  }

  .cta-left img {
    height: 145%;
  }

  .cta-left-content h3 {
    font-size: 1.95rem;
    line-height: 0.98;
  }

  .cta-primary {
    position: relative;
    z-index: 5;
  }

  .cta-right {
    width: calc(100% - 20px);
    margin-top: -10px;
    padding: 24px 18px;
  }

  .cta-right h4 {
    font-size: 1.35rem;
    line-height: 1.08;
  }

  .cta-kicker {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }
}



.footer {
  background: #0b0b0c;
  color: #fff;
  padding: 110px 32px 30px;
  margin-top: 90px;
}

.footer-container {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  gap: 40px;
}

.footer-col-wide {
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-col h5 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.7;
}

.footer-col p {
  font-size: 0.96rem;
  line-height: 1.75;
  opacity: 0.82;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 0.96rem;
  margin-bottom: 10px;
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-contact-link {
  color: #e68c34;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.footer-socials a {
  margin-bottom: 0;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.88rem;
  opacity: 0.62;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
/* Navbar phone style */
.nav-phone {
  color: #ffffff;
  background: #243E4D;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

/* Footer links underline */
.footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 600;
  opacity: 1;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.footer-credit-link span {
  color: #e68c34;
  font-weight: 700;
}

.footer-credit-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* TABLET + MOBILE */
@media (max-width: 900px) {
  .footer {
    padding: 72px 18px 24px;
    margin-top: 56px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-col,
  .footer-col-wide {
    max-width: none;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .footer-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .footer-col h4 {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }

  .footer-col h5 {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  .footer-col p,
  .footer-col a {
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 12px;
  }

  .footer-socials {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 12px;
  }

  .footer-socials a {
    display: inline-flex;
  }

  .footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    text-align: left;
  }

  .footer-bottom p {
    font-size: 0.82rem;
    line-height: 1.65;
  }
  .footer-credit-link {
    margin-top: 8px;
    font-size: 0.9rem;
  }
}

/* PIENI MOBILE */
@media (max-width: 560px) {
  .footer {
    padding: 56px 14px 20px;
    margin-top: 44px;
  }

  .footer-container {
    gap: 18px;
  }

  .footer-col,
  .footer-col-wide {
    padding-bottom: 16px;
  }

  .footer-col h4 {
    font-size: 1.22rem;
  }

  .footer-col h5 {
    font-size: 0.78rem;
    letter-spacing: 0.07em;
  }

  .footer-col p,
  .footer-col a {
    font-size: 0.9rem;
    line-height: 1.58;
    margin-bottom: 10px;
    word-break: break-word;
  }

  .footer-socials {
    gap: 10px 14px;
  }

  .footer-bottom {
    margin-top: 22px;
    padding-top: 16px;
  }

  .footer-bottom p {
    font-size: 0.78rem;
    line-height: 1.58;
  }
  .footer-credit-link {
    font-size: 0.86rem;
    margin-top: 8px;
  }
}



.news-page {
  padding: 180px 32px 90px;
  background: #f4f1ed;
  color: #111;
}


.news-page .news-topbar {
  margin-top: 0;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 20px;
}

 .news-page .news-topbar-left h1, .news-page .news-topbar-left h3 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.92;
  font-weight: 800;
  color: #111;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

 .news-page .news-topbar-left h1::after, .news-page .news-topbar-left h3::after {
  content: "";
  width: 64px;
  height: 6px;
  background: #e68c34;
  display: inline-block;
}


/* .news-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: rgba(17, 17, 17, 0.54);
}

.news-topbar-right a {
  color: #e68c34;
  text-decoration: none;
  font-weight: 600;
}
*/



.news-page .news-list {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding-top: 28px;
  overflow: visible;
}

.news-page .news-list-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-template-areas: "content image";
  gap: 40px;
  align-items: center;
  padding: 46px 28px;
  cursor: pointer;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
  will-change: transform;
}


.news-page .news-list-item:hover {
  transform: scale(1.012);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  z-index: 2;
}

.news-list-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
}

.news-page .news-list-content,
.news-page .news-list-image-wrap {
  position: relative;
  z-index: 2;
}

.news-page .news-list-content {
  grid-area: content;
  width: 100%;
  min-width: 0;
  padding-top: 4px;
}

.news-page .news-list-image-wrap {
  grid-area: image;
  width: 100%;
}

.news-page .news-list-image-wrap {
  position: relative;
  overflow: hidden;
  background: #ddd8d1;
  min-height: 316px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.news-page .news-list-image-wrap img {
  width: 100%;
  height: 316px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.news-page .news-list-image-wrap.news-image-top-focus img {
  object-position: center top;
}

.news-page .news-list-image-wrap.news-image-contain img {
  object-fit: contain;
  background: #ddd8d1;
}

.news-page .news-list-image-wrap.is-portrait {
  min-height: 420px;
}

.news-page .news-list-image-wrap.is-portrait img {
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center top;
}

.news-page .news-list-image-accent::after {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 58px;
  height: calc(100% - 24px);
}


.news-page .news-list-meta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.news-page .news-list-date {
  font-size: 0.98rem;
  color: #e68c34;
}

.news-page .news-list-category {
  font-size: 0.98rem;
  color: rgba(17, 17, 17, 0.56);
}

 .news-page .news-list-content h2, .news-page .news-list-content h4 {
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  line-height: 0.98;
  font-weight: 800;
  color: #111;
  margin-bottom: 24px;
  max-width: 900px;
}

.news-page .news-list-content p {
  font-size: 1.04rem;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.78);
  max-width: 900px;
  margin-bottom: 24px;
}

.news-page .news-list-link {
  display: inline-flex;
  align-items: center;
  color: #e68c34;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.news-page .news-list-link:hover {
  transform: translateX(2px);
  opacity: 0.9;
}

@media (max-width: 1100px) {
  .news-page {
    padding: 132px 24px 76px;
  }

  .news-page .news-list-item {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: "content image";
    gap: 28px;
    align-items: center;
    padding: 36px 22px;
  }

  .news-page .news-list-image-wrap,
  .news-page .news-list-image-wrap img {
    min-height: 250px;
    height: 250px;
  }

  .news-page .news-list-image-wrap.is-portrait {
    min-height: 380px;
  }

  .news-page .news-list-image-wrap.is-portrait img {
    height: auto;
    max-height: 500px;
  }

  .news-page .news-list-content h4 {
    font-size: 2.25rem;
  }
}

@media (max-width: 760px) {
  .news-page {
    padding: 132px 14px 56px;
  }

  .news-page .news-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 24px;
  }

  .news-page .news-topbar-left h1, .news-page .news-topbar-left h3 {
    font-size: 2.45rem;
    gap: 14px;
  }
  .news-page .news-topbar-left h1::after, .news-page .news-topbar-left h3::after {
    width: 42px;
    height: 5px;
  }

  .news-page .news-topbar-right {
    font-size: 0.94rem;
    flex-wrap: wrap;
  }


  .news-page .news-list-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "content";
    gap: 22px;
    padding: 28px 0;
  }

  .news-page .news-list-image-wrap {
    min-height: 220px;
    height: auto;
  }

  .news-page .news-list-image-wrap img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center top;
  }

  .news-page .news-list-image-wrap.news-image-top-focus img {
    object-position: center top;
  }

  .news-page .news-list-image-wrap.news-image-contain img {
    object-fit: contain;
  }

  .news-page .news-list-image-wrap.is-portrait {
    min-height: 0;
    height: auto;
  }

  .news-page .news-list-image-wrap.is-portrait img {
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
  }

  .news-page .news-list-image-accent::after {
    width: 44px;
    right: -12px;
    top: -12px;
  }

  .news-page .news-list-meta {
    gap: 14px;
    margin-bottom: 14px;
  }

  .news-page .news-list-date,
  .news-page .news-list-category {
    font-size: 0.9rem;
  }

  .news-page .news-list-content h2, .news-page .news-list-content h4 {
    font-size: 1.85rem;
    margin-bottom: 16px;
  }

  .news-page .news-list-content p {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 18px;
  }
}



/* ========================= */
/* 🔥 NEWS ARTICLE MODAL */
/* ========================= */

.news-article-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.news-article-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.news-article-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 13, 0.14);
  backdrop-filter: blur(6px);
}

.news-article-modal__panel {
  position: relative;
  z-index: 10001;
  width: 100%;
  height: 100%;
  background: #f4f1ed;
  color: #111;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.news-article-modal__close {
  position: fixed;
  top: 28px;
  right: 30px;
  width: 54px;
  height: 54px;
  border: none;
  background: transparent;
  color: #111;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
}

.news-article-modal__layout {
  width: min(1460px, calc(100% - 88px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 72px;
  padding: 210px 0 96px;
  align-items: start;
}

.news-article-modal__main {
  width: 100%;
  min-width: 0;
}

.news-article-modal__title {
  max-width: 1120px;
  font-size: clamp(2.7rem, 4.4vw, 4.45rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #232124;
  margin: 0 0 22px;
}

.news-article-modal__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  font-size: 0.98rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: rgba(35, 33, 36, 0.88);
}

.news-article-modal__body {
  max-width: 1120px;
}

.news-article-media {
  width: 100%;
  margin: 0 0 42px;
  overflow: visible;
  background: transparent;
}

  .news-article-media img,
  .news-article-media video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    object-position: center top;
  }

/* 🔥 Pystykuvat pienemmäksi ja siististi keskelle */
.news-article-media img {
  max-width: min(700px, 100%);
  max-height: 420px;
}

.news-article-media--video video {
  background: #000;
}
.news-article-media--video {
  display: grid;
  gap: 24px;
}

.news-article-modal__body p {
  font-size: clamp(1.18rem, 1.38vw, 1.62rem);
  line-height: 1.72;
  color: rgba(35, 33, 36, 0.92);
  margin: 0 0 34px;
}

.news-article-modal__body h3 {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.18;
  font-weight: 700;
  color: #232124;
  margin: 54px 0 18px;
}

.news-article-modal__body a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.news-article-modal__side {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-self: start;
}

.news-article-side-action {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  border: none;
  background: transparent;
  color: #232124;
  cursor: pointer;
  text-align: left;
}

.news-article-side-action__icon {
  width: 76px;
  height: 76px;
  border: 1.6px solid rgba(35, 33, 36, 0.58);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.35rem;
  line-height: 1;
  flex: 0 0 76px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.news-article-side-action__text {
  font-size: 0.98rem;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.news-article-side-action:hover .news-article-side-action__icon {
  transform: translateY(-2px);
  border-color: rgba(35, 33, 36, 0.88);
}

body.news-modal-open {
  overflow: hidden;
}

.news-follow {
  width: min(1320px, 100%);
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.news-follow p {
  font-size: 0.98rem;
  color: rgba(17,17,17,0.65);
}

.news-follow-links {
  display: flex;
  gap: 14px;
}

.news-follow-links a {
  color: #e68c34;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.news-follow-links a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .news-article-modal__layout {
    width: min(100%, calc(100% - 48px));
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 42px;
    padding: 156px 0 84px;
  }

  .news-article-modal__title,
  .news-article-modal__body {
    max-width: 100%;
  }

  .news-article-modal__body p {
    font-size: 1.18rem;
  }
}

@media (max-width: 940px) {
  .news-article-modal__layout {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 148px 0 72px;
  }

  .news-article-modal__side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .news-article-media {
    margin-bottom: 28px;
  }
  .news-article-modal__close {
    top: 18px;
    right: 16px;
    width: 46px;
    height: 46px;
    font-size: 1.75rem;
  }

  .news-article-modal__layout {
    width: calc(100% - 24px);
    gap: 34px;
    padding: 136px 0 56px;
  }

  .news-article-modal__title {
    font-size: 2.2rem;
    line-height: 1.06;
    margin-top: 6px;
    margin-bottom: 16px;
  }

  .news-article-modal__meta {
    margin-bottom: 34px;
    font-size: 0.88rem;
    gap: 10px;
  }

  .news-article-modal__body p {
    font-size: 1rem;
    line-height: 1.72;
    margin-bottom: 24px;
  }

  .news-article-modal__body h3 {
    font-size: 1.35rem;
    margin: 38px 0 14px;
  }

  .news-article-side-action {
    gap: 14px;
  }

  .news-article-side-action__icon {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    font-size: 2rem;
  }

  .news-article-side-action__text {
    font-size: 0.9rem;
  }
}

/* ========================= */
/* YHTEYSTIEDOT PAGE */
/* ========================= */

.contact-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.contact-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.contact-hero h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
}

.contact-main {
  position: relative;
  background: #f4f1ed;
  min-height: auto;
  overflow: hidden;
}

.contact-content-layer {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: auto;
  display: flex;
  align-items: flex-start;
}

.contact-info-wrap {
  width: min(1000px, calc(100% - 28vw));
  margin-left: 8%;
  margin-right: auto;
  padding: 20px 32px 140px;
  text-align: center;
}

.contact-section-title {
  font-size: 1.35rem;
  line-height: 1.12;
  color: #111;
  margin: 0 auto 18px;
  text-align: center;
}

.contact-people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 40px auto 40px;
  max-width: 900px;
}

.contact-person-card {
  padding: 0 0 12px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.contact-person-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #111;
  margin: 6px 0 6px;
  text-align: center;
}

.contact-person-card p {
  font-size: 0.96rem;
  color: rgba(17, 17, 17, 0.66);
  margin-bottom: 6px;
  text-align: center;
}

.contact-person-card a {
  display: block;
  color: #111;
  text-decoration: none;
  line-height: 1.65;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 4px;
}

.contact-person-card a:hover {
  color: #e68c34;
}

.contact-person-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center top;
  border-radius: 0;
  background: transparent;
  margin: 10px 0 14px;
  display: block;
}

.contact-form-block {
  display: grid;
  gap: 16px;
  margin: 20px auto 34px;
  max-width: 720px;
}

.contact-form-heading {
  margin-bottom: 6px;
}

.contact-form-heading h2 {
  font-size: 1.35rem;
  line-height: 1.12;
  color: #111;
  margin-bottom: 8px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-row-single {
  grid-template-columns: 1fr;
}

.contact-form-block input,
.contact-form-block textarea,
.contact-form-block select {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background-color: rgba(255, 255, 255, 0.82);
  padding: 16px 16px;
  font: inherit;
  color: #111;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-block input:focus,
.contact-form-block textarea:focus,
.contact-form-block select:focus {
  border-color: rgba(230, 140, 52, 0.7);
  box-shadow: 0 0 0 3px rgba(230, 140, 52, 0.12);
}

.contact-form-block select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23111' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M6 9l6 6 6-6'></path></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.contact-form-block textarea {
  resize: vertical;
  min-height: 170px;
}

.contact-form-submit {
  min-height: 54px;
  border: none;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0 26px;
  justify-self: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form-submit:hover {
  background: #e68c34;
  transform: translateY(-1px);
}

.contact-form-status {
  min-height: 22px;
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(17, 17, 17, 0.72);
}

.contact-form-status.is-success {
  color: #1b7f3a;
}

.contact-form-status.is-error {
  color: #b42318;
}

.services-page-topbar-left h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
}

.contact-info-section {
  margin: 0 auto 28px;
  max-width: 720px;
}

.contact-info-section h2,
.contact-info-section h3 {
  font-size: 1.16rem;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  text-align: center;
}

.contact-info-section p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(17, 17, 17, 0.74);
  text-align: center;
}

.contact-billing-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  max-width: 720px;
  margin: 40px auto;
  text-align: left;
}

.contact-billing-block h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 10px;
}

.contact-billing-block p {
  margin: 0;
}

.contact-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 720px;
  margin: 0 auto 36px;
}

.contact-address-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.08);
  padding: 22px 20px;
}

.contact-address-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  text-align: center;
}

.contact-address-card p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.72);
  text-align: center;
}

.contact-map {
  position: absolute;
  inset: 0;
  width: 100vw;
  margin-right: calc(-50vw + 50%);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.contact-map-image {
  position: absolute;
  top: 42%;
  height: 200vh;
  width: auto;
  object-fit: contain;
  transform: translateY(-50%);
}

.contact-map-image-left {
  left: 0%;
  top: 36%;
  height: 170vh;
  filter: grayscale(100%) brightness(2.5);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
}

.contact-map-image-right {
  right: -20%;
  filter: grayscale(100%) brightness(1.8) contrast(0.6) opacity(0.7);
}

.contact-map-image-flipped {
  left: 0;
  top: calc(30% + 170vh);
  transform: translateY(-50%) scaleY(-1);
  height: 170vh;
  opacity: 0.9;
  filter: grayscale(100%) brightness(2.5);
}

.contact-cta-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 140px 40px 100px;
  background: #f4f1ed;
  position: relative;
  overflow: hidden;
}

.contact-cta-box {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  height: 420px;
  min-height: unset;
  max-height: 420px;
}

.contact-cta-box img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 80%;
  transform: none;
  will-change: auto;
  transition: none;
  image-rendering: -webkit-optimize-contrast;
}

.contact-cta-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.4);
  color: #fff;
}

.contact-cta-overlay h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-cta-overlay a {
  background: #e68c34;
  padding: 10px 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
}

.footer-heading,
.footer-subheading {
  display: block;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
}

.footer-heading {
  font-size: 1.05rem;
}

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

@media (max-width: 1100px) {
  .contact-info-wrap {
    width: min(760px, calc(100% - 24vw));
    margin-left: 6%;
    margin-right: auto;
    padding: 88px 24px 96px;
  }

  .contact-people-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 900px) {
  .contact-main,
  .contact-content-layer {
    min-height: auto;
  }

  .contact-info-wrap {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 12px 16px 100px;
  }

  .contact-section-title,
  .contact-form-heading h2 {
    font-size: 1.18rem;
    margin-bottom: 12px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-form-block {
    gap: 12px;
    margin: 0 auto 26px;
    max-width: 100%;
  }

  .contact-form-block input,
  .contact-form-block textarea,
  .contact-form-block select {
    padding: 14px 14px;
    font-size: 16px;
  }

  .contact-form-block textarea {
    min-height: 150px;
  }

  .contact-form-submit {
    width: 100%;
    min-height: 52px;
  }

  .contact-address-grid,
  .contact-people-grid,
  .contact-billing-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-people-grid {
    margin: 28px auto 0;
    max-width: 100%;
  }

  .contact-person-card {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  }

  .contact-person-card:last-child {
    border-bottom: none;
    padding-bottom: 40px;
  }

  .contact-person-img {
    height: auto;
    max-height: 260px;
    object-fit: contain;
    margin-bottom: 12px;
  }

  .contact-person-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .contact-person-card p,
  .contact-person-card a {
    font-size: 0.92rem;
    line-height: 1.58;
    margin-bottom: 8px;
  }

  .contact-address-card {
    padding: 18px 16px;
  }

  .contact-address-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .contact-address-card p,
  .contact-billing-block p {
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .contact-billing-block {
    text-align: left;
    margin: 30px auto;
    max-width: 100%;
  }

  .contact-map {
    display: none;
  }

  .contact-cta-grid {
    padding: 72px 16px 64px;
  }

  .contact-cta-box {
    height: 280px;
    max-height: 280px;
  }

  .contact-cta-box img {
    height: 100%;
    object-position: center center;
    transform: none !important;
  }

  .contact-cta-overlay h2 {
    font-size: 1.55rem;
    margin-bottom: 12px;
    text-align: center;
  }

  .contact-cta-overlay a {
    padding: 12px 18px;
    font-size: 0.94rem;
  }
}

@media (max-width: 560px) {
  .contact-info-wrap {
    padding: 10px 14px 54px;
  }

  .contact-section-title,
  .contact-form-heading h2 {
    font-size: 1.08rem;
  }

  .contact-person-img {
    height: 220px;
  }

  .contact-form-block input,
  .contact-form-block textarea,
  .contact-form-block select {
    padding: 13px 13px;
  }

  .contact-address-card,
  .contact-billing-block,
  .contact-person-card {
    font-size: 0.9rem;
  }

  .contact-cta-grid {
    padding: 56px 14px 56px;
  }

  .contact-cta-box {
    height: 240px;
    max-height: 240px;
  }
  .contact-cta-box img {
    height: 100%;
    object-position: center center;
    transform: none !important;
  }

  .contact-cta-overlay h2 {
    font-size: 1.32rem;
  }
}
.services {
  padding: 180px 32px 0px;
  background: #f4f1ed;
  color: #111;
}

.services-page-topbar {
  width: min(1320px, 100%);
  margin: 0 auto 0px;
  padding-bottom: 0px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 20px;
}

.services-page-topbar-left h3 {
  font-size: clamp(2.5rem, 4.2vw, 3.8rem);
  line-height: 0.92;
  margin-bottom: 13px;
  font-weight: 800;
  color: #111;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.services-page-topbar-left h3::after {
  content: "";
  width: 64px;
  height: 6px;
  background: #e68c34;
  display: inline-block;
}

/* BODY */
.services-body {
  width: min(1320px, 100%);
  margin: 0 auto 0px;
  padding: 0 32px;
}

/* HEADING */
.services-heading-block {
  text-align: center;
  margin: 42px 0 42px;
}

.services-heading-block h2,
.services-heading-block h3 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(2.4rem, 3.8vw, 3.4rem);
  line-height: 0.92;
  font-weight: 800;
  color: #111;
}

/* GRID */
.services-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-feature-card {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.service-feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-feature-card-image {
  position: relative;
  background: transparent;
  border-radius: 0;
  min-height: auto;
  box-shadow: none;
  overflow: hidden;
}

.service-feature-image-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #ddd8d1;
}

.service-feature-image-wrap img { 
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.5s ease;
  image-rendering: -webkit-optimize-contrast;
}

.service-feature-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  display: flex;
  align-items: flex-end;
  background: rgba(60, 60, 60, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: opacity 0.6s ease;
}

.service-feature-overlay-content {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  transition: transform 0.4s ease;
}

.service-feature-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.service-feature-desc {
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
  line-height: 1.45;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.service-feature-card-image:hover .service-feature-overlay {
  top: 0;
  bottom: 0;
  background: rgba(0,0,0,0.75);
  align-items: center;
}

.service-feature-card-image:hover .service-feature-overlay-content {
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: translateY(0);
}

.service-feature-card-image:hover .service-feature-desc {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

.service-feature-card-image:hover .service-feature-image-wrap img {
  transform: scale(1.05);
}

@media (max-width: 1100px) {
  .services-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .services-map-bg {
    opacity: 0.16;
  }

  .services-map-image-left,
  .services-map-image-flipped {
    left: -14%;
    height: 160vh;
  }

  .services-map-image-left {
    top: 36%;
  }

  .services-map-image-flipped {
    top: calc(30% + 160vh);
  }
}

/* Add mask to left map image */
.services-map-image-left {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
}

/* MOBILE */
@media (max-width: 760px) {
  .services {
    padding: 132px 14px 64px;
  }

  .services-page-topbar {
    margin-top: 8px;
    margin-bottom: 48px;
    padding-bottom: 24px;
  }

  .services-map-bg {
    display: none;
  }

  .services-page-topbar-left h3 {
    font-size: 2.45rem;
    gap: 14px;
  }

  .services-page-topbar-left h3::after {
    width: 42px;
    height: 5px;
  }

  .services-heading-block {
    margin-bottom: 30px;
  }

  .services-heading-block h2,
  .services-heading-block h3 {
    font-size: 2.45rem;
  }

  .services-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-feature-image-wrap {
    height: 240px;
  }

  .service-feature-image-wrap img {
    transform: none !important;
    transition: none;
    filter: none;
    image-rendering: -webkit-optimize-contrast;
  }

  .service-feature-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.42) 36%,
      rgba(0, 0, 0, 0.08) 68%,
      rgba(0, 0, 0, 0) 100%
    );
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .service-feature-card-image:hover .service-feature-overlay {
    top: auto;
    bottom: 0;
    align-items: flex-end;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.42) 36%,
      rgba(0, 0, 0, 0.08) 68%,
      rgba(0, 0, 0, 0) 100%
    );
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .service-feature-overlay-content {
    padding: 14px 14px 12px;
    gap: 6px;
  }

  .service-feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
  }

  .service-feature-desc {
    font-size: 0.84rem;
    line-height: 1.38;
    max-height: none;
    opacity: 1;
    transform: none;
  }

  .service-feature-card-image:hover .service-feature-desc {
    max-height: none;
    opacity: 1;
    transform: none;
  }

  .service-feature-card-image:hover .service-feature-image-wrap img {
    transform: none;
  }

  .service-feature-desc {
    display: none;
  }
  .service-feature-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.contact-services-cta {
  background: #f4f1ed;
}

.contact-services-cta .cta-split-services {
  margin: 80px auto;
  padding: 80px 0;
  background: #f4f1ed;
}

.services-cta-spacer {
  width: 100vw;
  height: 15vh;
  background: #f4f1ed;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}



.references-hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.references-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  pointer-events: none;
  user-select: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-user-drag: none;
}

.references-hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
  isolation: isolate;
  pointer-events: none;
  width: min(800px, calc(100% - 32px));
  transform: translate3d(-50%, -50%, 0);
  backface-visibility: hidden;
}

.references-hero-content::before {
  content: "";
  position: absolute;
  inset: -40px -60px;
  background: radial-gradient(circle at center, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0) 100%);
  z-index: -1;
  filter: blur(18px);
}

.references-hero-content h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 0.95;
  text-shadow: 0 14px 40px rgba(0,0,0,0.85);
}

.references-hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  text-shadow: 0 10px 30px rgba(0,0,0,0.75);
}

.references-new {
  background: #f4f1ed;
  position: relative;
  overflow: visible;
  padding: 0;
}

.references-intro-overlay {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.references-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.references-intro h2 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.references-intro p {
  color: #555;
  font-size: 1.1rem;
}

.reference-project-showcase {
  position: relative;
  height: 220vh;
  margin-top: -100vh;
}

.reference-project-showcase:first-of-type {
  margin-top: 0;
}

.reference-project-showcase:nth-of-type(1) {
  z-index: 1;
}

.reference-project-showcase:nth-of-type(2) {
  z-index: 2;
}

.reference-project-showcase:nth-of-type(3) {
  z-index: 3;
}

.reference-project-showcase:nth-of-type(4) {
  z-index: 4;
}

.reference-project-showcase:nth-of-type(5) {
  z-index: 5;
}

.reference-project-stick {
  position: sticky;
  top: 0;
  height: 100vh;
}

.reference-project-slide {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
}

.reference-project-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.reference-project-overlay {
  position: absolute;
  inset: 0;
  background: #f4f1ed;
}

.reference-project-inner {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 56px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(0, 1fr);
  align-items: start;
  gap: 54px;
  padding: 160px 0 0;
}

.reference-project-copy {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 560px;
  color: #111;
  position: relative;
  z-index: 2;
}

.reference-project-line {
  width: 1px;
  min-width: 1px;
  height: 190px;
  background: rgba(0, 0, 0, 0.2);
}

.reference-project-kicker {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 209, 95, 0.92);
  margin-bottom: 16px;
}

.reference-project-copy h3 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 0.9;
  font-weight: 800;
  color: #111;
  margin-bottom: 18px;
  margin-top: 40px;
}

.reference-project-copy p:last-child {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.28;
  color: #444;
  max-width: 520px;
  margin-top: 12px;
}

.reference-project-gallery {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 1120px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reference-gallery-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 86px;
}

.reference-gallery-track {
  display: flex;
  gap: 22px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.reference-gallery-image {
  width: 62%;
  flex: 0 0 62%;
  height: 420px; /* 🔥 FIX: keep consistent height */
  object-fit: cover;
  border-radius: 8px;
  background: #ececec;
}

.reference-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #e68c34, #ffb066);
  color: #fff;
  box-shadow: 0 14px 30px rgba(230, 140, 52, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: transform 0.22s ease, opacity 0.22s ease, background 0.22s ease;
}

.reference-gallery-arrow span {
  font-size: 3rem;
  line-height: 1;
  margin-top: -4px;
}

.reference-gallery-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  background: linear-gradient(135deg, #ff9a3c, #ffc27a);
  box-shadow: 0 18px 40px rgba(255, 154, 60, 0.45);
}

.reference-gallery-arrow:disabled,
.reference-gallery-arrow[aria-disabled="true"] {
  opacity: 0.32;
  cursor: default;
  pointer-events: none;
  transform: translateY(-50%);
}

.reference-gallery-arrow-left {
  left: 22px;
}

.reference-gallery-arrow-right {
  right: 22px;
}

.reference-project-cta {
  min-width: 202px;
  min-height: 66px;
  padding: 0 28px;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  color: #111;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.reference-project-cta:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.05);
  border-color: #111;
}

.reference-gallery-viewport::before,
.reference-gallery-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
  z-index: 3;
}

.reference-gallery-viewport::before {
  left: 0;
  background: linear-gradient(to right, #f4f1ed 0%, rgba(255,255,255,0) 100%);
}

.reference-gallery-viewport::after {
  right: 0;
  background: linear-gradient(to left, #f4f1ed 0%, rgba(255,255,255,0) 100%);
}

.reference-project-showcase:last-of-type {
  height: 120vh;
}

@media (max-width: 1200px) {
  .references-hero {
    height: 100svh;
  }

  .references-hero-content h1 {
    font-size: 2.6rem;
  }

  .references-hero-content p {
    font-size: 1rem;
  }

  .references-intro-overlay {
    width: min(100%, calc(100% - 32px));
    padding: 36px 0 56px;
  }

  .reference-project-showcase {
    height: auto;
    margin-top: 0;
  }

  .reference-project-stick {
    position: relative;
    height: auto;
  }

  .reference-project-slide {
    min-height: 100vh;
    height: auto;
    transform: none !important;
  }

  .reference-project-inner {
    width: min(100%, calc(100% - 36px));
    min-height: 100vh;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 90px 0 56px;
  }

  .reference-project-copy {
    width: 100%;
    max-width: none;
  }

  .reference-project-copy h3 {
    font-size: clamp(3rem, 7vw, 5rem);
  }

  .reference-project-copy p:last-child {
    font-size: 1.5rem;
    max-width: 100%;
  }

  .reference-project-gallery {
    max-width: 100%;
    min-height: 460px;
  }

  .reference-gallery-viewport {
    padding: 8px 68px;
  }

  .reference-gallery-track {
    gap: 18px;
  }

  .reference-gallery-image {
    width: 68%;
    flex-basis: 68%;
    aspect-ratio: 0.88;
  }

  .reference-gallery-viewport::before,
  .reference-gallery-viewport::after {
    width: 90px;
  }
}

@media (max-width: 760px) {
  .references-hero {
    height: 100svh;
    min-height: 100svh;
  }

  .references-hero-content {
    width: calc(100% - 28px);
    max-width: 100%;
    padding: 0 8px;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0) !important;
  }

  .references-hero-content::before {
    inset: -20px -12px;
    filter: blur(12px);
  }

  .references-hero-content h1 {
    font-size: 2.35rem;
    line-height: 0.94;
    margin-bottom: 12px;
  }

  .references-hero-content p {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .references-intro-overlay {
    width: calc(100% - 24px);
    padding: 28px 0 40px;
  }

  .references-intro h2 {
    font-size: 2.1rem;
    line-height: 0.98;
  }

  .references-intro p {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .reference-project-slide {
    min-height: auto;
    height: auto;
    transform: none !important;
  }

  .reference-project-slide::before {
    width: calc(100% - 28px);
  }

  .reference-project-inner {
    width: calc(100% - 28px);
    min-height: auto;
    padding: 62px 0 34px;
    gap: 18px;
  }

  .reference-project-copy {
    gap: 12px;
    align-items: stretch;
  }

  .reference-project-line {
    height: auto;
    min-height: 86px;
  }

  .reference-project-copy h3 {
    font-size: 1.8rem;
    line-height: 0.94;
    margin: 8px 0 10px;
  }

  .reference-project-copy p:last-child {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-top: 0;
  }

  .reference-project-gallery {
    min-height: 0;
    height: auto;
    max-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .reference-project-gallery[data-gallery] {
    position: relative;
  }

  .reference-gallery-viewport {
    padding: 0 44px;
    overflow: hidden;
    max-height: 300px;
  }
  .reference-gallery-viewport::before,
  .reference-gallery-viewport::after {
    display: none;
  }


  .reference-gallery-track {
    display: flex;
    gap: 12px;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

  .reference-gallery-image {
    width: 100%;
    flex: 0 0 100%;
    height: 240px; /* 🔥 slightly tighter mobile */
    object-fit: cover;
    border-radius: 8px;
  }

  .reference-gallery-track,
  .reference-gallery-image,
  .reference-project-slide {
    max-width: 100%;
  }

  .reference-gallery-arrow {
    display: inline-flex;
    width: 48px;
    height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .reference-gallery-arrow span {
    font-size: 2.1rem;
    margin-top: -2px;
  }

  .reference-gallery-arrow-left {
    left: -2px;
  }

  .reference-gallery-arrow-right {
    right: -2px;
  }

  .reference-project-showcase,
  .reference-project-showcase:last-of-type {
    height: auto;
    margin-top: 0;
  }

  .reference-project-stick {
    position: relative;
    height: auto;
  }
}

.reference-project-slide {
  position: relative;
}

.reference-project-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 80px));
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  z-index: 3;
}

/* ========================= */
/* 🔥 YRITYS SIVU */
/* ========================= */

.yritys-intro-center {
  width: min(920px, calc(100% - 40px));
  margin: 72px auto 0;
  text-align: center;
}

.yritys-intro-center .contact-kicker {
  margin-bottom: 20px;
}

.yritys-intro-center h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.92;
  font-weight: 800;
  color: #111;
  margin: 0 auto 32px;
  max-width: 920px;
  letter-spacing: -0.03em;
}

.yritys-intro-center > div {
  display: grid;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.yritys-intro-center p {
  font-size: 1.06rem;
  line-height: 1.9;
  color: rgba(17, 17, 17, 0.74);
  margin: 0;
}

/* STATS WRAPPER */
.yritys-stats-wrapper {
  width: min(1120px, calc(100% - 60px));
  margin: 90px auto 0;
  padding-bottom: 110px;
}

/* GRID */
.yritys-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
}

/* CARD */
.yritys-stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 44px;
  opacity: 0;
  transform: translateY(34px);
}

.yritys-stat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8%;
  width: 1px;
  height: 84%;
  background: rgba(17, 17, 17, 0.10);
}

.yritys-stat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* TOP */
.yritys-stat-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yritys-stat-label {

  font-size: 0.82rem;

  font-weight: 900;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  color: rgba(17, 17, 17, 0.72);

  margin: 0;

}

/* VALUE */
.yritys-stat-value {
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
  font-size: clamp(3.2rem, 5vw, 5rem);
  line-height: 0.85;
  font-weight: 800;
  color: #111;
  margin: 0;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.yritys-stat-static {
  display: inline-block;
  vertical-align: bottom;
  margin-left: 0.035em;
}

.yritys-roll-slot {
  position: relative;
  display: inline-block;
  width: 0.62em;
  height: 0.9em;
  overflow: hidden;
  vertical-align: bottom;
}

/* piste / desimaalierotin */
.yritys-roll-slot--separator {
  width: 0.28em;
}

.yritys-roll-current,
.yritys-roll-next {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0.9em;
  height: 0.9em;
}

.yritys-roll-current {
  top: 0;
  transform: translateY(0);
  opacity: 1;
}

.yritys-roll-next {
  top: 0;
  transform: translateY(100%);
  opacity: 0;
}

.yritys-roll-slot.is-rolling .yritys-roll-current {
  animation: yritysRollCurrentUp 0.82s linear forwards;
}

.yritys-roll-slot.is-rolling .yritys-roll-next {
  animation: yritysRollNextUp 0.82s linear forwards;
}

@keyframes yritysRollCurrentUp {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(-70%); opacity: 1; }
  100% { transform: translateY(-110%); opacity: 0; }
}

@keyframes yritysRollNextUp {
  0% { transform: translateY(110%); opacity: 0; }
  30% { transform: translateY(70%); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* DESC */
.yritys-stat-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(17, 17, 17, 0.65);
  margin: 0;
  max-width: 30ch;
}

/* VAIN 3.6 M€ */
.yritys-stat-value--revenue {
  letter-spacing: -0.055em;
}

.yritys-stat-value--revenue .yritys-roll-slot {
  width: 0.61em;
}

.yritys-stat-value--revenue .yritys-roll-slot--separator {
  width: 0.24em;
}

.yritys-stat-value--revenue .yritys-stat-static {
  margin-left: 0.02em;
}

/* TABLET */
@media (max-width: 1100px) {
  .yritys-intro-center {
    width: min(840px, calc(100% - 36px));
    margin-top: 48px;
  }

  .yritys-stats-wrapper {
    width: calc(100% - 40px);
    margin-top: 80px;
  }

  .yritys-stats {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .yritys-stat-card {
    padding: 0;
  }

  .yritys-stat-card::after {
    display: none;
  }

  .yritys-stat-desc {
    max-width: none;
  }
}

/* MOBILE */
@media (max-width: 760px) {
  .yritys-intro-center {
    width: calc(100% - 28px);
    margin-top: 36px;
  }

  .yritys-intro-center h1 {
    font-size: 2.5rem;
    margin-bottom: 22px;
  }

  .yritys-intro-center > div {
    gap: 16px;
  }

  .yritys-intro-center p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .yritys-stats-wrapper {
    width: calc(100% - 28px);
    margin-top: 60px;
    padding-bottom: 80px;
  }

  .yritys-stats {
    gap: 46px;
  }

  .yritys-stat-card {
    gap: 18px;
  }

  .yritys-stat-value {
    font-size: 3rem;
  }

  .yritys-roll-slot {
    width: 0.62em;
    height: 0.88em;
  }

  .yritys-roll-slot--separator {
    width: 0.26em;
  }

  .yritys-roll-current,
  .yritys-roll-next {
    height: 0.88em;
    line-height: 0.88em;
  }

  .yritys-stat-desc {
    font-size: 0.94rem;
    line-height: 1.65;
  }
}














/* ========================= */
/* LEGAL PAGES */
/* ========================= */

.legal-page{
  background:#f4f1ed;
  color:#111;
  min-height:100vh;
}

.legal-hero{
  padding:190px 32px 74px;
  background:#f4f1ed;
}

.legal-hero__inner{
  width:min(1050px, 100%);
  margin:0 auto;
  text-align:center;
}

.legal-hero h1{
  margin:0 auto 22px;
  font-size:clamp(3rem, 6vw, 5rem);
  line-height:.92;
  font-weight:800;
  letter-spacing:-.04em;
  color:#111;
}

.legal-hero p:not(.contact-kicker){
  margin:0 auto;
  max-width:680px;
  font-size:1.08rem;
  line-height:1.8;
  color:rgba(17,17,17,.72);
}

.legal-content{
  padding:0 32px 110px;
}

.legal-content__inner{
  width:min(920px, 100%);
  margin:0 auto;
  display:grid;
  gap:22px;
}

.legal-block{
  padding:34px 0;
  border-top:1px solid rgba(17,17,17,.12);
}

.legal-block:last-child{
  border-bottom:1px solid rgba(17,17,17,.12);
}

.legal-block h2{
  margin:0 0 16px;
  font-size:clamp(1.35rem, 2vw, 1.85rem);
  line-height:1.15;
  font-weight:800;
  color:#111;
  letter-spacing:-.02em;
}

.legal-block p,
.legal-block li{
  font-size:1rem;
  line-height:1.85;
  color:rgba(17,17,17,.74);
}

.legal-block p + p{
  margin-top:8px;
}

.legal-block ul{
  margin:10px 0 0 20px;
  display:grid;
  gap:6px;
}

.legal-block a{
  color:#e68c34;
  font-weight:700;
  text-decoration:none;
}

.legal-block a:hover{
  text-decoration:underline;
}

@media (max-width:760px){
  .legal-hero{
    padding:140px 16px 52px;
  }

  .legal-content{
    padding:0 16px 72px;
  }

  .legal-block{
    padding:26px 0;
  }

  .legal-block p,
  .legal-block li{
    font-size:.96rem;
    line-height:1.72;
  }
}


/* ========================= */
/* 404 PAGE */
/* ========================= */

.error-page {
  min-height: 100vh;
  background: #f4f1ed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 20px 80px;
}

.error-content {
  text-align: center;
  max-width: 640px;
}

.error-content h1 {
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 900;
  color: #111;
  margin-bottom: 10px;
}

.error-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #111;
}

.error-content p {
  color: rgba(17,17,17,0.7);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions a {
  text-decoration: none;
}
/* ========================= */
/* 🚫 DISABLE HOVER ON MOBILE */
/* ========================= */
@media (hover: none) and (pointer: coarse) {
  *:hover {
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    filter: none !important;
  }

  .news-list-item:hover,
  .news-card:hover,
  .reference-gallery-arrow:hover,
  .news-list-link:hover,
  .cookie-banner__btn:hover,
  .cta-primary:hover,
  .cta-secondary:hover {
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
  }
}   