/* =========================
   ROOT / TOKENS
   ========================= */

:root {
  --font-inter: "Inter", sans-serif;
  --font-vollkorn: "Vollkorn SC", serif;
  --font-yesteryear: "Yesteryear", cursive;
  --font-raleway: "Raleway", sans-serif;
  --font-dimension: "Source Sans Pro", Helvetica, sans-serif;
  --font-cormorant: "Cormorant Garamond", serif;
  --font-cinzel: "Cinzel", serif;

  --text-light: #ffffff;
  --yellow: #faba00;
  --link-hover: #faba00;

  --banner-top: 10px;
  --banner-height: 74px;
  --banner-radius: 26px;
  --banner-visual-side-gap: clamp(16px, 4vw, 72px);

  --section-gap: 18px;
  --section-top-safe: calc(var(--banner-top) + var(--banner-height) + 34px);
  --section-bottom-safe: 96px;
  --section-side-safe: clamp(18px, 4vw, 40px);
  --section-content-max: 980px;
  --text-max: 780px;
}

/* =========================
   RESET / BASE
   ========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--text-light);
  background: #050608;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::after {
  z-index: -3;
  background: url("images/anssi2.jpg") center center / cover no-repeat;
}

body::before {
  z-index: -2;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.88) 8%,
    rgba(0, 0, 0, 0.58) 20%,
    rgba(0, 0, 0, 0.16) 34%,
    rgba(0, 0, 0, 0.16) 66%,
    rgba(0, 0, 0, 0.58) 80%,
    rgba(0, 0, 0, 0.88) 92%,
    rgba(0, 0, 0, 0.98) 100%
  );
}

body.overlay-open,
body.tours-window-open,
body.guide-open {
  overflow: hidden;
}

a {
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

.page-bg-media {
  display: none;
}

/* =========================
   SITE NOTICE
   ========================= */

.site-notice {
  position: fixed;
  top: 102px;
  right: 22px;
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(250, 186, 0, 0.35);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-inter);
  font-size: 12px;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.site-notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(250, 186, 0, 0.7);
}

/* =========================
   SITE BANNER / NAV
   ========================= */

.site-banner {
  position: fixed;
  top: var(--banner-top);
  left: var(--banner-visual-side-gap);
  right: var(--banner-visual-side-gap);
  z-index: 100000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--banner-height);
  padding: 0 26px;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.site-banner.trezor-banner {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--banner-radius);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

body.tours-window-open .site-banner,
body.guide-open .site-banner {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-14px);
}

.banner-left,
.banner-right,
.banner-nav,
.trezor-nav {
  display: flex;
  align-items: center;
}

.banner-left {
  justify-self: start;
  gap: 12px;
}

.banner-right {
  justify-self: end;
  gap: 10px;
}

.banner-logo {
  display: block;
  width: auto;
  height: 34px;
}

.banner-nav,
.trezor-nav {
  justify-content: center;
}

.banner-nav {
  justify-self: center;
  gap: 26px;
}

.trezor-nav {
  gap: 34px;
}

.banner-nav .nav-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 4px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-inter);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.banner-nav .nav-link:hover,
.banner-nav .nav-link:focus-visible,
.banner-nav .nav-link:hover .nav-label,
.banner-nav .nav-link:focus-visible .nav-label {
  color: var(--yellow);
}

.banner-nav .nav-link::before,
.mobile-menu a::before {
  content: "";
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.96;
  filter:
    saturate(1.03)
    contrast(1.02)
    drop-shadow(0 1px 1px rgba(255, 255, 255, 0.18))
    drop-shadow(0 1px 3px rgba(0, 0, 0, 0.14));
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.banner-nav .nav-link:hover::before,
.banner-nav .nav-link:focus-visible::before {
  opacity: 1;
  transform: translateY(-1px) scale(1.05);
}

.banner-nav .nav-fox::before,
#mobile-services-link::before {
  background-image: url("images/fox.png");
}

.banner-nav .nav-reindeer::before,
.mobile-menu a[href="/retkikirja/"]::before {
  background-image: url("images/reindeer.png");
}

.banner-nav .nav-bear::before,
.mobile-menu a[href="/oppaasi-timo-juhani/"]::before,
.mobile-menu a[href="/info/"]::before {
  background-image: url("images/bear.png");
}

.nav-item-products,
.nav-item-guide {
  position: relative;
}

.nav-caret {
  position: relative;
  z-index: 3;
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.24s ease;
}

.nav-item-products.is-open .nav-caret,
.nav-item-guide.is-open .nav-caret {
  transform: rotate(-135deg) translateY(-1px);
}

.lang-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  transition: color 0.18s ease, transform 0.18s ease;
}

.lang-text-link:hover,
.lang-text-link:focus-visible {
  color: var(--yellow);
  transform: translateY(-1px);
}

.burger,
.mobile-menu,
.mobile-services-submenu {
  display: none;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-services-submenu {
  flex-direction: column;
  gap: 10px;
  margin-top: -8px;
  padding-left: 34px;
}

.mobile-services-submenu.is-open {
  display: flex;
}

.mobile-services-submenu a {
  font-size: 13px;
  opacity: 0.9;
}

/* =========================
   MEGA MENUS
   ========================= */

.products-mega,
.guide-mega,
.journal-mega {
  position: fixed;
  top: calc(var(--banner-top) + var(--banner-height) + 12px);
  left: var(--banner-visual-side-gap);
  right: var(--banner-visual-side-gap);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.products-mega.is-open,
.guide-mega.is-open,
.journal-mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.products-mega-inner,
.guide-mega-inner,
.journal-mega-inner {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(18, 22, 28, 0.58);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* =========================
   PRODUCTS MEGA
   ========================= */

.products-mega-inner {
  padding: 20px;
}

.products-mega-grid.services-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(420px, 620px));
  justify-content: center;
  gap: 18px;
}

.products-mega-grid.services-mega-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1280px;
  margin-inline: auto;
}

.service-mega-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  appearance: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.service-mega-card:hover,
.service-mega-card:focus-visible {
  border-color: rgba(250, 186, 0, 0.35);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.products-mega-grid.services-mega-grid--three .service-mega-card {
  grid-template-columns: 1fr;
  min-width: 0;
}

.service-mega-image-wrap {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1.2 / 1;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.products-mega-grid.services-mega-grid--three .service-mega-image-wrap {
  max-height: 180px;
  aspect-ratio: 2.1 / 1;
}

.service-mega-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-mega-content h3,
.journal-mega-content h3 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-vollkorn);
  font-weight: 600;
  line-height: 1.15;
}

.service-mega-content h3 {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.products-mega-grid.services-mega-grid--three .service-mega-content h3 {
  font-size: clamp(1rem, 1.2vw, 1.35rem);
}

.service-mega-content p,
.journal-mega-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-cormorant);
  line-height: 1.45;
}

.service-mega-content p {
  font-size: 1.15rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.products-mega-grid.services-mega-grid--three .service-mega-content p {
  font-size: clamp(0.9rem, 1vw, 1.05rem);
}

.service-mega-card-wip .service-mega-image-wrap {
  position: relative;
}

.service-mega-card-wip .service-mega-image-wrap::after {
  content: "Work in progress";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  padding: 8px 18px;
  border: 2px solid rgba(250, 186, 0, 0.92);
  border-radius: 999px;
  color: #faba00;
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.72);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(250, 186, 0, 0.18);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.service-mega-card-wip .service-mega-image {
  filter: brightness(0.62) saturate(0.75);
}

/* =========================
   GUIDE MEGA
   ========================= */

.guide-mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
  width: min(1328px, 100%);
  height: 214px;
  margin-inline: auto;
  padding: 14px;
  overflow: visible;
}

.guide-mega-panel {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  height: 100%;
  padding: 26px 36px 20px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
}

.guide-mega-panel:hover {
  border-color: rgba(250, 186, 0, 0.35);
}

.guide-mega-panel::before,
.guide-mega-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.guide-mega-panel::before {
  z-index: -2;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.02);
}

.guide-mega-panel::after {
  z-index: -1;
}

.guide-mega-guide::before {
  background-image: url("images/opas-pieni.png");
  background-position: left bottom;
  background-size: auto 100%;
  filter: brightness(1.18) contrast(1.03) saturate(1.04);
}

.guide-mega-info::before {
  background-image: url("images/maisema.jpg");
  background-position: center center;
}

.guide-mega-guide::after {
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.06) 0%,
      rgba(0, 0, 0, 0.18) 30%,
      rgba(0, 0, 0, 0.82) 48%,
      rgba(0, 0, 0, 0.94) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.12) 0%,
      rgba(0, 0, 0, 0.62) 100%
    );
}

.guide-mega-info::after {
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.76) 44%,
      rgba(0, 0, 0, 0.22) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.68) 100%
    );
}

.guide-mega-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  min-height: 0;
  max-width: 390px;
}

.guide-mega-guide .guide-mega-content {
  margin-left: min(29vw, 270px);
}

.guide-mega-info .guide-mega-content {
  grid-template-rows: auto auto auto;
  width: 100%;
  max-width: none;
  margin-left: 4px;
}

.guide-mega-content h3 {
  margin: 0 0 10px;
  color: #d8af43;
  font-family: var(--font-vollkorn);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.88),
    0 0 10px rgba(216, 175, 67, 0.16);
}

.guide-mega-content p,
.guide-mega-contact {
  align-self: start;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-inter);
  font-size: 14px;
  line-height: 1.42;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.86);
}

.guide-mega-contact {
  display: grid;
  gap: 7px;
  padding: 0;
  list-style: none;
}

.guide-mega-contact li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.guide-mega-icon {
  display: inline-grid;
  place-items: center;
  width: 21px;
  color: #d8af43;
  font-size: 20px;
  line-height: 1;
}

.guide-mega-actions,
.guide-mega-info-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.guide-mega-actions {
  align-self: end;
  padding-top: 12px;
}

.guide-mega-info-actions {
  align-self: start;
  justify-content: flex-end;
  width: 100%;
  margin-top: 12px;
}

.guide-mega-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid rgba(216, 175, 67, 0.72);
  border-radius: 5px;
  font-family: var(--font-inter);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.guide-mega-btn-dark {
  color: #f4dfaa;
  background: rgba(0, 0, 0, 0.44);
}

.guide-mega-btn-gold {
  color: #171009;
  background: linear-gradient(180deg, #f4c85c 0%, #c8942f 100%);
}

.guide-mega-btn:hover,
.guide-mega-btn:focus-visible {
  border-color: rgba(250, 186, 0, 0.95);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(250, 186, 0, 0.22),
    inset 0 0 0 1px rgba(255, 235, 170, 0.25);
  transform: translateY(-2px);
}

.guide-mega-btn-dark:hover,
.guide-mega-btn-dark:focus-visible {
  color: #111;
  background: linear-gradient(180deg, #f4c85c 0%, #c8942f 100%);
}

.guide-mega-btn-gold:hover,
.guide-mega-btn-gold:focus-visible {
  color: #fff8df;
  background: rgba(0, 0, 0, 0.48);
}

#guide-mega-open-contact {
  cursor: pointer;
}

/* =========================
   JOURNAL MEGA
   ========================= */

.journal-mega-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(900px, 100%);
  margin-inline: auto;
  padding: 20px;
}

.journal-mega-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.journal-mega-card:hover,
.journal-mega-card:focus-visible {
  border-color: rgba(250, 186, 0, 0.35);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.journal-mega-image-wrap {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.journal-mega-image {
  width: 72%;
  height: 72%;
  object-fit: contain;
  object-position: center;
}

.journal-mega-content h3 {
  font-size: 1.35rem;
}

.journal-mega-content p {
  font-size: 1.05rem;
}

/* =========================
   HERO
   ========================= */

.snap-section {
  position: relative;
  display: grid;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
}

.home-section {
  padding:
    var(--section-top-safe)
    var(--section-side-safe)
    var(--section-bottom-safe);
  background: transparent;
}

.home-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100dvh;
  text-align: center;
}

.hero-image-wrap {
  position: fixed;
  top: clamp(300px, 42vh, 430px);
  left: 60%;
  z-index: 1;
  width: 60vw;
  max-width: 920px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-image {
  display: block;
  width: min(96vw, 920px);
  max-width: 92%;
  height: auto;
  margin-inline: auto;
  filter: brightness(1) contrast(1.15) saturate(1.05);
  transform: translateY(-4%) scale(1);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 51%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 99%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent -1%, #000 30%, #000 59%, transparent 86%),
    linear-gradient(to bottom, transparent 2%, #000 17%, #000 83%, transparent 98%);
  mask-composite: intersect;
}

.scroll-bear-layer {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: translate(-50%, -50%) scale(1);
  transition:
    opacity 0.65s ease-out,
    transform 0.65s ease-out,
    filter 0.65s ease-out;
}

body.bear-fade-triggered .scroll-bear-layer {
  opacity: 0;
  filter: blur(14px) brightness(1.12);
  transform: translate(-50%, -58%) scale(0.92);
  transition:
    opacity 1.8s ease-in,
    transform 1.8s ease-in,
    filter 1.8s ease-in;
}

#home .hero-title-block {
  position: absolute !important;
  top: 19vh !important;
  left: 50% !important;
  z-index: 200 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(92vw, 900px) !important;
  max-width: 900px !important;
  margin: 0 !important;
  overflow: visible !important;
  text-align: center !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) !important;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-cinzel);
  font-size: clamp(44px, 4.2vw, 72px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-shadow:
    0 6px 18px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(137, 187, 255, 0.25);
  white-space: nowrap;
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.55);
}

.hero-title {
  margin: 0;
  color: #f4b400;
  font-family: var(--font-yesteryear);
  font-size: clamp(36px, 3.4vw, 54px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.05em;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.85),
    0 6px 12px rgba(0, 0, 0, 0.6),
    0 0 6px rgba(244, 180, 0, 0.35);
  transform: translateY(10px);
  -webkit-text-stroke: 0.4px rgba(40, 20, 0, 0.6);
}

.hero-action-panel {
  position: absolute;
  top: calc(100% + 11vh) !important;
  left: 50%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(24px, 3vw, 38px);
  margin: 0;
  pointer-events: auto;
  transform: translateX(-50%);
}

.hero-action-card {
  display: flex;
  flex: 0 0 clamp(170px, 12vw, 210px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: clamp(170px, 12vw, 210px);
  height: 168px;
  padding: 14px 12px;
  overflow: hidden;
  border: 1px solid rgba(191, 129, 36, 0.58);
  border-radius: 14px;
  color: #f7f2e8;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(26, 31, 28, 0.88) 0%, rgba(12, 16, 15, 0.92) 100%);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(255, 223, 143, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.hero-action-card:hover,
.hero-action-card:focus-visible {
  border-color: rgba(250, 186, 0, 0.72);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.52),
    0 0 10px rgba(250, 186, 0, 0.14),
    inset 0 0 0 1px rgba(255, 230, 160, 0.12);
  outline: none;
  transform: translateY(-3px);
}

.hero-action-icon,
.hero-action-icon-map,
.hero-action-icon-guide {
  filter: none;
}

.hero-action-icon,
.hero-action-icon-map,
.hero-action-icon-guide {
  display: none;
}
.hero-action-title {
  display: block;
  width: 100%;
  color: #fffaf0;
  font-family: var(--font-vollkorn);
  font-size: clamp(12px, 0.85vw, 15px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
}

.hero-action-text {
  display: block;
  width: 100%;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-inter);
  font-size: clamp(9px, 0.65vw, 11px);
  font-weight: 600;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.85);
}

.fixed-gold-scroll {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 100001;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(250, 186, 0, 0.92);
  border-radius: 999px;
  background: rgba(8, 12, 11, 0.72);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 222, 140, 0.14);
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.22s ease,
    background 0.22s ease;
}

.fixed-gold-scroll span {
  width: 7px;
  height: 7px;
  border-right: 2px solid #faba00;
  border-bottom: 2px solid #faba00;
  transform: rotate(45deg) translate(-2px, -2px);
}

.fixed-gold-scroll:hover,
.fixed-gold-scroll:focus-visible {
  background: rgba(20, 25, 20, 0.88);
  outline: none;
  transform: translateX(-50%) translateY(2px);
}

.fixed-gold-scroll.is-hidden,
body.tours-window-open .fixed-gold-scroll,
body.guide-open .fixed-gold-scroll,
body.overlay-open .fixed-gold-scroll {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================
   COMMON SECTIONS
   ========================= */

.page-container {
  position: relative;
  width: 100%;
  margin: 0;
  padding-top: 0;
  overflow: visible;
}

.intro-section,
.tours-section,
.virtual-trail-section,
.journal-section,
.contact-section {
  display: grid;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  place-items: center;
}

.intro-stage,
.tours-stage,
.virtual-stage,
.journal-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.section-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--section-gap);
  width: min(100%, var(--section-content-max));
  min-height: 100%;
  margin: 0 auto;
  padding:
    var(--section-top-safe)
    var(--section-side-safe)
    var(--section-bottom-safe);
  text-align: center;
}

.text-section .section-inner {
  width: min(100%, 900px);
}
#intro .section-inner {
  padding-top: calc(var(--banner-top) + var(--banner-height) + 70px);
}

#intro .intro-text {
  max-height: calc(100dvh - var(--banner-top) - var(--banner-height) - 120px);
  overflow: visible;
  font-size: clamp(24px, 2vw, 36px);
  line-height: 1.22;
}
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
  text-align: center;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.section-title-icon {
  width: clamp(60px, 7vw, 96px);
  opacity: 0.85;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}

.section-header h2 {
  position: relative;
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-vollkorn);
  font-size: clamp(28px, 2.4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0.16em;
  text-shadow:
    0 4px 14px rgba(0, 0, 0, 0.65),
    0 0 12px rgba(250, 186, 0, 0.35);
}

.section-header h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(185, 215, 234, 0.95), transparent);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.65);
}

.intro-text,
.virtual-text,
.journal-text {
  width: min(100%, var(--text-max));
  margin: 0;
  overflow-wrap: break-word;
  color: #f7f4ec;
  font-family: var(--font-cormorant);
  font-size: clamp(28px, 2.2vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.32),
    0 0 2px rgba(0, 0, 0, 0.9);
}

.intro-text a,
.contact-email a,
.copyright a {
  color: inherit;
  text-decoration: none;
}

.text-highlight {
  display: inline;
  padding: 0.14em 0.38em;
  border-radius: 0.18em;
  background: rgba(64, 78, 93, 0.34);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* =========================
   BUTTONS
   ========================= */

.ui-btn {
  all: unset;
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 28px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  color: white;
  font-family: var(--font-raleway);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: rgba(139, 172, 217, 0.42);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
}

.ui-btn::after {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(80, 110, 130, 0.55);
  opacity: 0.7;
  transition: width 0.35s ease, opacity 0.35s ease;
}

.ui-btn:hover,
.ui-btn:focus-visible {
  border-color: rgba(200, 215, 230, 0.6);
  color: #1f2c36;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.ui-btn:hover::after,
.ui-btn:focus-visible::after {
  width: 52px;
  opacity: 1;
}

/* =========================
   VIRTUAL / JOURNAL
   ========================= */

.virtual-map-wrap,
.journal-image-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 10px auto 0;
}

.journal-image-wrap {
  width: min(76vw, 520px);
  margin-top: 8px;
  overflow: visible;
}

.virtual-image {
  display: block;
  width: min(80vw, 560px);
  max-height: 36vh;
  height: auto;
  margin: 10px auto 0;
  object-fit: contain;
  -webkit-mask-image:
    radial-gradient(ellipse at center, #000 21%, transparent 71%),
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: intersect;
  mask-composite: intersect;
}

.journal-image {
  display: block;
  width: 100%;
  max-height: 34vh;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter:
    brightness(1.08)
    contrast(1.04)
    saturate(1.08)
    drop-shadow(0 18px 38px rgba(0, 0, 0, 0.35));
  -webkit-mask-image:
    radial-gradient(ellipse at center, #000 24%, rgba(0, 0, 0, 0.92) 42%, transparent 76%),
    linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.virtual-bear-link {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.virtual-bear-icon {
  display: block;
  width: clamp(90px, 10.5vw, 150px);
  height: auto;
  opacity: 0.96;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.38));
  transform-origin: center center;
  animation: virtualBearPulse 1.8s ease-in-out infinite;
  transition: filter 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.virtual-bear-link:hover .virtual-bear-icon,
.virtual-bear-link:focus-visible .virtual-bear-icon {
  filter:
    grayscale(1)
    contrast(1.05)
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
}

@keyframes virtualBearPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

.tours-actions,
#vieraskirja .guestbook-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tours-actions {
  margin-top: 8px;
}

.journal-actions-below-image .ui-btn {
  width: min(240px, 62vw);
  min-height: 48px;
  border-color: rgba(210, 230, 255, 0.54);
  background: rgba(95, 130, 170, 0.46);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

#vieraskirja .journal-actions-below-image .ui-btn {
  width: 92px;
}

/* =========================
   CONTACT
   ========================= */

.contact-section {
  padding: 0;
  text-align: center;
  background: transparent;
}

#yhteys {
  position: relative;
  min-height: 115vh;
  overflow: hidden;
  background: transparent;
}

#yhteys::before {
  content: "";
  position: absolute;
  inset: -8vh 0 0 0;
  z-index: 0;
  background: url("images/myllyerik.jpg") center top / cover no-repeat;
  filter: brightness(1.22) contrast(0.96) saturate(0.9);
  transform: scale(1.04);
}

#yhteys::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.52) 18%,
    rgba(0, 0, 0, 0.22) 42%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

#yhteys .section-inner,
#yhteys .contact-inner {
  position: relative;
  z-index: 2;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding:
    var(--section-top-safe)
    var(--section-side-safe)
    var(--section-bottom-safe);
}

.contact-title {
  margin: 0;
  color: var(--text-light);
  font-family: var(--font-cinzel);
  font-size: clamp(28px, 2.2vw, 42px);
  letter-spacing: 0.18em;
}

.contact-email a {
  color: var(--yellow);
  font-family: var(--font-cormorant);
  font-size: clamp(22px, 1.8vw, 30px);
}

.contact-divider {
  width: 120px;
  height: 1px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.35);
}

.contact-divider.small {
  width: 80px;
  margin: 16px auto 8px;
  opacity: 0.6;
}

.copyright {
  color: white;
  font-family: var(--font-inter);
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.6;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* =========================
   BASIC OVERLAY / GUESTBOOK
   ========================= */

#lajitoveri-overlay,
#guestbook-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

#lajitoveri-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

#lajitoveri-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#guestbook-overlay {
  display: none;
  place-items: center;
  padding: 20px 14px;
}

#guestbook-overlay.active {
  display: grid;
}

.lajitoveri-article {
  position: relative;
  width: 40rem;
  max-width: 90%;
  padding: 4.5rem 2.5rem 2rem;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-dimension);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.02em;
  background-color: rgba(27, 31, 34, 0.85);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out;
}

#lajitoveri-overlay.active .lajitoveri-article,
#guestbook-overlay.active .lajitoveri-article {
  opacity: 1;
  transform: translateY(0);
}

.lajitoveri-article .close {
  position: absolute;
  top: 0;
  right: 0;
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  text-indent: -9999px;
  cursor: pointer;
}

.lajitoveri-article .close::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cline x1='2' y1='2' x2='18' y2='18' stroke='%23ffffff'/%3E%3Cline x1='18' y1='2' x2='2' y2='18' stroke='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.lajitoveri-article h2.major {
  display: inline-block;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: solid 1px rgba(255, 255, 255, 0.75);
  color: var(--yellow);
  font-family: var(--font-dimension);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
}

#guestbook-overlay .lajitoveri-article {
  width: min(560px, 92vw);
  max-height: 86vh;
  overflow: auto;
  padding: 26px 26px 22px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.72)),
    url("images/vieraskirja.png");
  background-position: center;
  background-size: cover;
}

#guestbook-overlay.reading #guestbookForm {
  display: none;
}

#guestbook-overlay #entries {
  max-height: 42vh;
  margin-top: 14px;
  overflow: auto;
  padding-right: 6px;
}

#guestbookForm input,
#guestbookForm textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  background: rgba(10, 10, 10, 0.75);
}

#guestbookForm textarea {
  min-height: 110px;
  max-height: 220px;
  resize: vertical;
}

#guestbookForm input:focus,
#guestbookForm textarea:focus {
  border-color: var(--yellow);
  outline: none;
  box-shadow: 0 0 0 2px rgba(250, 186, 0, 0.25);
}

.guestbook-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 8px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-inter);
  font-size: 13px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.08);
}

.guestbook-consent input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 2px 0 0;
  cursor: pointer;
  accent-color: var(--yellow);
}

.entry {
  margin-top: 18px;
  padding: 22px;
  border-left: 3px solid var(--yellow);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.55);
}

.entry-name {
  font-size: 18px;
  font-weight: 600;
}

.entry-location {
  font-size: 13px;
  opacity: 0.7;
}

.entry-message {
  margin-top: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.entry-date {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.5;
}

/* =========================
   TOURS / GUIDE OVERLAYS
   ========================= */

.tours-window-overlay,
.guide-overlay {
  position: fixed;
  inset: 0;
  display: none;
}

.tours-window-overlay {
  z-index: 30001;
}

.guide-overlay {
  z-index: 30002;
}

.tours-window-overlay.is-open,
.guide-overlay.is-open {
  display: block;
}

.tours-window-backdrop,
.guide-backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
}

.tours-window-backdrop {
  background: rgba(0, 0, 0, 0.64);
}

.guide-backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.tours-window-article,
.guide-article {
  position: relative;
  width: min(1180px, calc(100vw - 40px));
  height: min(860px, calc(100vh - 40px));
  margin: 20px auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.tours-window-article {
  background: rgba(20, 22, 26, 0.96);
}

.tours-window-topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 72px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(8px);
}

.tours-window-topbar h2 {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-vollkorn);
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tours-window-close,
.guide-close {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  color: #fff;
  line-height: 1;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.tours-window-close {
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.tours-window-close:hover,
.guide-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.tours-window-frame {
  position: absolute;
  inset: 64px 0 0 0;
  display: block;
  width: 100%;
  height: calc(100% - 64px);
  border: 0;
  background: #fff;
}

.guide-article {
  width: min(1120px, calc(100vw - 40px));
  background:
    linear-gradient(rgba(12, 16, 20, 0.84), rgba(12, 16, 20, 0.96)),
    url("images/riisi-pieni.jpg");
  background-position: center;
  background-size: cover;
}

.guide-close {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.guide-shell {
  height: 100%;
  overflow: auto;
  padding: 34px 32px 30px;
}

.guide-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: start;
  gap: 28px;
  margin-bottom: 28px;
}

.guide-photo-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.guide-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.guide-intro h2 {
  margin: 0 0 14px;
  color: var(--yellow);
  font-family: var(--font-vollkorn);
  font-size: 34px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-lead,
.guide-body-text,
.guide-quote p {
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-cormorant);
}

.guide-lead {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.34;
}

.guide-section {
  margin-top: 24px;
}

.guide-section-title {
  margin: 0 0 14px;
  color: var(--yellow);
  font-family: var(--font-vollkorn);
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-body-text {
  max-width: 920px;
  font-size: 24px;
  line-height: 1.45;
}

.guide-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.guide-quote {
  padding: 20px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.guide-quote p {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.38;
}

.guide-quote span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-inter);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1360px) {
  .trezor-nav {
    gap: 18px;
  }

  .banner-nav .nav-link {
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.03em;
  }

  .products-mega,
  .guide-mega,
  .journal-mega {
    left: 12px;
    right: 12px;
  }

  .products-mega-inner {
    padding: 12px;
  }

  .products-mega-grid.services-mega-grid {
    gap: 10px;
  }

  .service-mega-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .service-mega-image-wrap {
    max-height: 160px;
    aspect-ratio: 2.1 / 1;
  }

  .service-mega-content h3 {
    font-size: 0.9rem;
  }

  .service-mega-content p {
    font-size: 0.88rem;
  }

  .guide-mega-inner {
    width: min(1180px, 100%);
    height: 190px;
  }

  .guide-mega-panel {
    padding: 22px 28px 18px;
  }

  .guide-mega-guide .guide-mega-content {
    margin-left: min(27vw, 220px);
  }

  .guide-mega-content h3 {
    font-size: 22px;
  }

  .guide-mega-content p,
  .guide-mega-contact {
    font-size: 13px;
    line-height: 1.36;
  }

  .guide-mega-btn {
    min-width: 76px;
    min-height: 23px;
    padding: 3px 8px;
    font-size: 8.5px;
  }
}

@media (min-width: 1200px) and (max-width: 1400px) {
  .hero-title {
    font-size: clamp(40px, 3.2vw, 56px);
  }

  .hero-eyebrow {
    font-size: clamp(48px, 4.8vw, 68px);
    letter-spacing: 0.14em;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .section-title-icon {
    width: 36px;
  }

  .virtual-bear-icon {
    width: clamp(96px, 9.5vw, 142px);
  }

  .intro-text,
  .virtual-text,
  .journal-text {
    font-size: 30px;
    line-height: 1.35;
  }
}

@media (min-width: 1200px) and (min-height: 760px) {
  .hero-action-panel {
    top: calc(100% + 78px) !important;
  }
}

@media (min-width: 1200px) and (max-height: 650px) {
  #home .hero-title-block {
    top: 16vh !important;
    width: min(88vw, 820px) !important;
  }

  .hero-eyebrow {
    font-size: clamp(42px, 4.2vw, 58px);
    letter-spacing: 0.14em;
  }

  .hero-title {
    font-size: clamp(34px, 3vw, 46px);
    transform: translateY(4px);
  }

  .hero-action-panel {
    top: calc(100% + 36px) !important;
    gap: 28px;
  }

  .hero-action-card {
    flex: 0 0 170px;
    width: 170px;
    height: 142px;
    padding: 10px;
    gap: 6px;
  }

  .hero-action-icon {
    width: 34px;
    height: 34px;
  }

  .hero-action-icon-map {
    width: 42px;
    height: 34px;
  }

  .hero-action-icon-guide {
    width: 36px;
    height: 36px;
  }

  .hero-action-title {
    font-size: 16px;
    line-height: 1.02;
  }

  .hero-action-text {
    font-size: 11px;
    line-height: 1.18;
  }

  .site-notice {
    top: 184px;
  }
}

@media (min-width: 1200px) and (max-width: 1400px) and (max-height: 650px) {
  .products-mega-grid.services-mega-grid {
    grid-template-columns: repeat(2, minmax(0, 520px));
    gap: 18px;
  }

  .products-mega-grid.services-mega-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1120px;
    gap: 12px;
  }

  .service-mega-card {
    grid-template-columns: 1fr;
    max-width: 520px;
    padding: 14px;
  }

  .products-mega-grid.services-mega-grid--three .service-mega-card {
    max-width: none;
    padding: 10px;
  }

  .service-mega-image-wrap {
    max-height: 160px;
    aspect-ratio: 2.6 / 1;
  }

  .products-mega-grid.services-mega-grid--three .service-mega-image-wrap {
    max-height: 118px;
    aspect-ratio: 2.2 / 1;
  }

  .service-mega-image {
    object-fit: contain;
    background: rgba(0, 0, 0, 0.35);
  }

  .products-mega-grid.services-mega-grid--three .service-mega-content h3 {
    margin-bottom: 5px;
    font-size: 1rem;
    line-height: 1.05;
  }

  .products-mega-grid.services-mega-grid--three .service-mega-content p {
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .products-mega-inner {
    max-width: 1160px;
    margin-inline: auto;
  }

  #vieraskirja .section-inner {
    justify-content: center;
    gap: 10px;
    padding-top: 98px;
    padding-bottom: 32px;
  }

  #vieraskirja .section-title-icon {
    display: none;
  }

  #vieraskirja .section-header h2 {
    font-size: 30px;
  }

  #vieraskirja .journal-text {
    font-size: 28px;
    line-height: 1.15;
  }

  #vieraskirja .journal-image-wrap {
    width: min(54vw, 540px);
    margin-top: 2px;
  }

  .virtual-image,
  #vieraskirja .journal-image {
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 14%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 14%, #000 84%, transparent 100%);
    mask-composite: intersect;
  }

  #vieraskirja .journal-image {
    max-height: 32vh;
  }

  #vieraskirja .journal-actions-below-image {
    gap: 8px !important;
    margin-top: 8px !important;
  }

  #vieraskirja .journal-actions-below-image .ui-btn {
    width: 190px !important;
    min-height: 34px !important;
    padding: 5px 14px !important;
    font-size: 6.4px !important;
  }
}

@media (max-width: 900px) {
  :root {
    --banner-visual-side-gap: 10px;
  }

  body {
    background: #070807;
  }

  body::after {
    background: url("images/anssi1.jpg") center center / cover no-repeat !important;
  }

  body::before {
    background:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.42) 0%,
        rgba(0, 0, 0, 0.18) 34%,
        rgba(0, 0, 0, 0.42) 100%
      ),
      linear-gradient(
        to right,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.08) 44%,
        rgba(0, 0, 0, 0.5) 100%
      );
  }

  .site-banner,
  .site-banner.trezor-banner {
    top: 24px;
    left: 30px;
    right: 30px;
    height: 74px;
    padding: 0 20px;
    border-radius: 26px;
    grid-template-columns: auto auto;
    justify-content: space-between;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(24, 24, 22, 0.58);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
  }

  .trezor-nav,
  .banner-nav,
  .products-mega,
  .guide-mega,
  .journal-mega {
    display: none !important;
  }

  .banner-logo {
    height: 42px;
  }

  .banner-right {
    gap: 14px;
  }

  .burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .burger span {
    display: block;
    width: 26px;
    height: 3px;
    margin-inline: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
  }

  .mobile-menu {
    position: fixed;
    top: 82px;
    left: 10px;
    right: 10px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 26px 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow:
      0 18px 45px rgba(0, 0, 0, 0.55),
      0 4px 12px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .mobile-menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-inter);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    text-transform: uppercase;
  }

  .mobile-menu a:hover {
    color: var(--yellow);
  }

  .mobile-menu a::before {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
  }

  .site-notice {
    top: 180px;
    left: 50%;
    right: auto;
    width: max-content;
    max-width: calc(100vw - 70px);
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
    border-color: rgba(250, 186, 0, 0.5);
    background: rgba(24, 22, 18, 0.72);
    transform: translateX(-50%);
  }

  .home-section {
    display: block;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 0 22px 30px;
    overflow: hidden;
  }

  .home-stack {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-image-wrap,
  .scroll-bear-layer {
    position: fixed;
    inset: auto;
    top: 0;
    left: 50%;
    z-index: 0;
    display: block;
    width: 160vw;
    height: 100dvh;
    overflow: visible;
    pointer-events: none;
    transform: translateX(-50%);
  }

  .hero-image {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    opacity: 0.95;
    filter: brightness(0.92) contrast(1.08) saturate(0.95);
    transform: translateY(-10%) scale(0.62);
    transform-origin: center center;
    -webkit-mask-image: radial-gradient(
      ellipse at center,
      #000 0%,
      #000 38%,
      rgba(0, 0, 0, 0.72) 56%,
      transparent 78%
    );
    mask-image: radial-gradient(
      ellipse at center,
      #000 0%,
      #000 38%,
      rgba(0, 0, 0, 0.72) 56%,
      transparent 78%
    );
  }

  body.bear-fade-triggered .scroll-bear-layer {
    opacity: 1;
    filter: none;
    transform: translateX(-50%);
  }

  #home .hero-title-block {
    position: absolute !important;
    top: clamp(218px, 29svh, 250px) !important;
    left: 50% !important;
    z-index: 5 !important;
    width: calc(100vw - 36px) !important;
    max-width: 390px !important;
    padding-inline: 0 !important;
    text-align: center !important;
    transform: translateX(-50%) !important;
  }

  .hero-eyebrow {
    width: 100%;
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(30px, 9.4vw, 42px);
    line-height: 1.16;
    letter-spacing: 0.14em;
    text-align: center;
    white-space: normal;
    text-shadow:
      0 3px 6px rgba(0, 0, 0, 0.9),
      0 14px 24px rgba(0, 0, 0, 0.55);
  }

  .hero-title {
    margin-top: 8px;
    color: #faba00;
    font-size: clamp(25px, 7.2vw, 34px);
    line-height: 1;
    letter-spacing: 0.03em;
    transform: none;
  }

.hero-action-panel {
  position: absolute;
  top: calc(100% + 70px) !important;
  left: 50%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 24px);
  margin: 0;
  pointer-events: auto;
  transform: translateX(-50%);
}

.hero-action-card {
  display: flex;
  flex: 0 0 clamp(118px, 8.8vw, 150px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: clamp(118px, 8.8vw, 150px);
  height: 108px;
  padding: 9px 8px;
  overflow: hidden;
  border: 1px solid rgba(191, 129, 36, 0.5);
  border-radius: 12px;
  color: #f7f2e8;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(26, 31, 28, 0.78) 0%, rgba(12, 16, 15, 0.84) 100%);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 223, 143, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

  .hero-action-card::before {
    content: "";
    grid-column: 2;
    grid-row: 1;
    width: 1px;
    height: 52px;
    background: rgba(255, 255, 255, 0.32);
  }

  .hero-action-card::after {
    content: "›";
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    color: #faba00;
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1;
  }

  .hero-action-icon,
  .hero-action-icon-map,
  .hero-action-icon-guide {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  .hero-action-icon-map {
    width: 48px;
    height: 40px;
  }

  .hero-action-icon-guide {
    width: 48px;
    height: 48px;
    border-radius: 0;
  }

  .hero-action-title {
    grid-column: 3;
    grid-row: 1;
    padding-left: 16px;
    color: #fffaf0;
    font-size: clamp(18px, 5.2vw, 23px);
    line-height: 1.08;
    letter-spacing: 0.02em;
    text-transform: none;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .hero-action-text {
    display: none;
  }

  .fixed-gold-scroll {
    bottom: 34px;
    width: 38px;
    height: 38px;
    border-width: 2px;
  }

  .fixed-gold-scroll span {
    width: 11px;
    height: 11px;
    border-right-width: 3px;
    border-bottom-width: 3px;
  }

  .section-inner {
    width: 100%;
    max-width: none;
    min-height: 100%;
    gap: 14px;
    padding:
      calc(var(--banner-top) + var(--banner-height) + 20px)
      18px
      86px;
  }

  .intro-text,
  .virtual-text,
  .journal-text {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.26;
  }

  .section-header h2 {
    font-size: clamp(24px, 6vw, 34px);
  }

  .section-title-icon {
    width: 34px;
  }

  .virtual-image {
    width: min(88vw, 450px);
    max-height: 28vh;
  }

  .journal-image {
    width: min(86vw, 420px);
    max-height: 26vh;
  }

  .virtual-bear-icon {
    width: clamp(82px, 20vw, 118px);
  }

  .tours-window-article,
  .guide-article {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 18px;
  }

  .tours-window-topbar {
    height: 56px;
    padding: 0 64px 0 16px;
  }

  .tours-window-topbar h2 {
    font-size: 15px;
  }

  .tours-window-frame {
    inset: 56px 0 0 0;
    height: calc(100% - 56px);
  }

  .guide-shell {
    padding: 24px 16px 22px;
  }

  .guide-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .guide-photo-wrap {
    max-width: 420px;
    margin: 0 auto;
  }

  .guide-intro h2 {
    font-size: 24px;
  }

  .guide-lead,
  .guide-body-text,
  .guide-quote p {
    font-size: 21px;
  }
}

@media (max-width: 420px) {
  .site-banner,
  .site-banner.trezor-banner {
    left: 20px;
    right: 20px;
  }

  .site-notice {
    top: 170px;
  }

  #home .hero-title-block {
    top: 242px !important;
    width: calc(100vw - 54px) !important;
  }

  .hero-action-card {
    height: 98px;
    grid-template-columns: 82px 1px minmax(0, 1fr) 24px;
    padding: 12px 16px;
  }

  .hero-action-title {
    padding-left: 18px;
  }
}

@media (max-width: 380px) {
  .hero-image {
    transform: translateY(-10%) scale(0.84);
  }

  #home .hero-title-block {
    top: 212px !important;
    width: calc(100vw - 30px) !important;
  }

  .hero-eyebrow {
    font-size: 30px;
    letter-spacing: 0.12em;
  }

  .hero-action-card {
    height: 78px;
    min-height: 78px;
    grid-template-columns: 58px 1px minmax(0, 1fr) 18px;
    padding: 9px 10px;
  }

  .hero-action-title {
    padding-left: 13px;
    font-size: 18px;
  }
}

@media (min-width: 701px) and (max-width: 950px) and (max-height: 600px) {
  .hero-eyebrow {
    margin-bottom: 6px;
    font-size: 22px;
    letter-spacing: 0.22em;
  }

  .intro-text,
  .virtual-text,
  .journal-text {
    font-size: 25px;
    line-height: 1.35;
  }

  .hero-image {
    max-height: 42vh;
  }
}
#intro {
  scroll-margin-top: 0;
}

#intro .section-inner {
  justify-content: center;
  min-height: 100dvh;
}

#intro .intro-text {
  font-size: clamp(24px, 2vw, 36px);
  line-height: 1.22;
}

/* =========================
   HERO-NAPIT: VANHA TYYLI KUVILLA,
   MUTTA ILMAN RAAMIA JA TAUSTALAATIKKOA
   ========================= */

.hero-action-panel {
  position: absolute;
  top: calc(100% + 84px) !important;
  left: 50%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(28px, 4vw, 54px);
  margin: 0;
  pointer-events: auto;
  transform: translateX(-50%);
}

.hero-action-card {
  display: flex;
  flex: 0 0 clamp(170px, 12vw, 210px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: clamp(170px, 12vw, 210px);
  height: 168px;
  padding: 14px 12px;
  overflow: visible;

  border: none !important;
  border-radius: 0 !important;
  color: #f7f2e8;
  text-decoration: none;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

.hero-action-card:hover,
.hero-action-card:focus-visible {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  filter:
    drop-shadow(0 0 10px rgba(250, 186, 0, 0.18))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  transform: translateY(-3px);
}

.hero-action-icon,
.hero-action-icon-map,
.hero-action-icon-guide {
  display: block !important;
  flex: 0 0 auto;
  object-fit: contain;
  filter:
    drop-shadow(0 5px 10px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
}

.hero-action-icon {
  width: 38px;
  height: 38px;
}

.hero-action-icon-map {
  width: 46px;
  height: 38px;
}

.hero-action-icon-guide {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
}

.hero-action-title {
  display: block;
  width: 100%;
  color: #fffaf0;
  font-family: var(--font-vollkorn);
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.98),
    0 6px 12px rgba(0, 0, 0, 0.85),
    0 0 8px rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
}

.hero-action-text {
  display: block;
  width: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-inter);
  font-size: clamp(12px, 0.78vw, 14px);
  font-weight: 600;
  line-height: 1.28;
  overflow-wrap: anywhere;
  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.95),
    0 6px 12px rgba(0, 0, 0, 0.75);
}
/* =========================
   DESKTOP / MATALA NÄYTTÖ
   esim. 1280 x 591
   ========================= */

@media (min-width: 901px) and (max-height: 650px) {
  #home .hero-title-block {
    top: 26vh !important;
  }

  .hero-eyebrow {
    transform: translateY(18px);
  }

  .hero-title {
    transform: translateY(24px);
  }

  .hero-forest-quote {
    margin-top: 34px !important;
    transform: translateY(22px);
  }

  .hero-action-panel {
    top: calc(100% + 50px) !important;
  }

  .fixed-gold-scroll {
    bottom: 18px !important;
  }
}
/* =========================
   HERO-ALANAPIT: HOVER MUSTAVALKOISEKSI
   ========================= */

.hero-action-card:hover,
.hero-action-card:focus-visible {
  transform: none !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  filter: grayscale(1) contrast(1.08) brightness(0.92)
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)) !important;
}

.hero-action-card:hover .hero-action-icon,
.hero-action-card:focus-visible .hero-action-icon,
.hero-action-card:hover .hero-action-icon-map,
.hero-action-card:focus-visible .hero-action-icon-map,
.hero-action-card:hover .hero-action-icon-guide,
.hero-action-card:focus-visible .hero-action-icon-guide,
.hero-action-card:hover .hero-action-title,
.hero-action-card:focus-visible .hero-action-title,
.hero-action-card:hover .hero-action-text,
.hero-action-card:focus-visible .hero-action-text {
  filter: grayscale(1) contrast(1.08) brightness(0.92) !important;
  color: rgba(230, 230, 230, 0.82) !important;
}
/* =========================
   HERO: PIENI HIENOSÄÄTÖ
   ========================= */

@media (min-width: 901px) {
  #home .hero-title-block {
    top: 19vh !important; /* oli 19vh */
  }

  .hero-image-wrap {
    left: 66% !important; /* oli 60% */
  }
}
/* =========================
   BANNER: HIEMAN MATALAMPI
   ========================= */

:root {
  --banner-height: 54px; /* oli 74px */
}

.site-banner {
  height: var(--banner-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.banner-logo {
  height: 30px; /* oli 34px */
}
/* =========================
   HERO-LAINAUS
   ========================= */

.hero-quote-wrap {
  position: relative;
  width: min(78vw, 860px);
  margin: 34px auto 0;
  padding: 17px 0 15px;
  color: rgba(232, 221, 196, 0.86);
  text-align: center;
}

.hero-quote-wrap::before,
.hero-quote-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(100%, 720px);
  height: 1px;
  opacity: 0.42;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(217, 184, 111, 0.06) 12%,
    rgba(217, 184, 111, 0.62) 42%,
    transparent 50%,
    rgba(217, 184, 111, 0.62) 58%,
    rgba(217, 184, 111, 0.06) 88%,
    transparent 100%
  );
  transform: translateX(-50%);
}

.hero-quote-wrap::before {
  top: 0;
}

.hero-quote-wrap::after {
  bottom: 0;
}

.hero-quote-ornament {
  position: absolute;
  left: 50%;
  top: -12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  color: rgba(217, 184, 111, 0.72);
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.85),
    0 0 8px rgba(217, 184, 111, 0.12);
  transform: translateX(-50%);
}

.hero-quote-ornament-bottom {
  top: auto;
  bottom: -13px;
  transform: translateX(-50%) rotate(180deg);
}

.hero-forest-quote {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto;
  color: rgba(232, 221, 196, 0.86);
  font-family: var(--font-cormorant);
  font-size: clamp(20px, 1.45vw, 27px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.018em;
  text-align: center;
  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.88),
    0 8px 22px rgba(0, 0, 0, 0.78);
  -webkit-text-stroke: 0;
}

.hero-forest-quote span {
  display: inline-block;
  margin-top: 5px;
  color: rgba(232, 221, 196, 0.78);
  font-size: 0.78em;
  letter-spacing: 0.025em;
}
@media (max-width: 900px) {
  .hero-quote-wrap {
    position: absolute !important;
    left: 50% !important;
    top: calc(100% + 18px) !important;
    z-index: 0 !important;
    width: min(92vw, 360px) !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) !important;
  }

  .hero-quote-wrap::before,
  .hero-quote-wrap::after,
  .hero-quote-ornament {
    display: none !important;
  }

  .hero-forest-quote {
    width: 100% !important;
    color: rgba(225, 222, 214, 0.26) !important;
    font-family: var(--font-cormorant) !important;
    font-size: clamp(20px, 5.6vw, 28px) !important;
    font-style: italic !important;
    line-height: 1.08 !important;
  }

  .hero-action-panel {
    position: static !important;
    z-index: 5 !important;
    margin-top: 92px !important;
  }
}
/* =========================
   1280 x 591: quote-koristeen korjaus
   ========================= */

@media (min-width: 1200px) and (max-width: 1320px) and (max-height: 650px) {
  .hero-quote-wrap {
    position: relative !important;
    width: 760px !important;
    max-width: 76vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  /* Viivat pysyvät viivoina */
  .hero-quote-wrap::before,
  .hero-quote-wrap::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    width: min(100%, 720px) !important;
    height: 1px !important;
    opacity: 0.42 !important;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(217, 184, 111, 0.06) 12%,
      rgba(217, 184, 111, 0.62) 42%,
      transparent 50%,
      rgba(217, 184, 111, 0.62) 58%,
      rgba(217, 184, 111, 0.06) 88%,
      transparent 100%
    ) !important;
    transform: translateX(-50%) !important;
  }

  .hero-quote-wrap::before {
    top: 0 !important;
  }

  .hero-quote-wrap::after {
    bottom: 0 !important;
  }

  /* Tämä siirtää ylempää ornamenttisymbolia */
  .hero-quote-ornament {
    left: 50% !important;
    top: -12px !important;
    transform: translateX(-50%) !important;
  }

  /* Tämä siirtää alempaa ornamenttisymbolia */
  .hero-quote-ornament-bottom {
    left: 50% !important;
  
    transform: translateX(-50%) rotate(180deg) !important;
  }

  .hero-forest-quote {
    width: 700px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
}
/* =========================
   HERO-NAPIT: POISTA ALIMMAT TEKSTIRIVIT
   ========================= */

.hero-action-text {
  display: none !important;
}
/* =========================
   HERO-NAPIT: PÄÄTEKSTI ALATEKSTIN VÄRISEKSI
   ========================= */

.hero-action-title {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* =========================
   HERO-NAPIT: RESPONSIVE SIJOITTELU
   ========================= */

/* Perusdesktop */
@media (min-width: 901px) {
  .hero-action-panel {
    top: calc(100% + 72px) !important;
  }
}

/* Matala desktop, esim. 1280 x 591 */
@media (min-width: 901px) and (max-width: 1399px) and (max-height: 650px) {
  .hero-action-panel {
    top: calc(100% + 24px) !important;
  }
    .fixed-gold-scroll {
    bottom: 8px !important; /* pienempi bottom = alemmaksi */
  }
}

/* Normaali/korkeampi keskikokoinen desktop */
@media (min-width: 1200px) and (max-width: 1399px) and (min-height: 651px) {
  .hero-action-panel {
    top: calc(100% + 68px) !important;
  }
}

/* Leveä desktop, esim. 1680 px */
@media (min-width: 1500px) {
  .hero-action-panel {
    top: calc(100% + 104px) !important;
  }
}

/* Leveä mutta matala ikkuna */
@media (min-width: 1500px) and (max-height: 720px) {
  .hero-action-panel {
    top: calc(100% + 84px) !important;
  }
}
@media (min-width: 901px) {
  .hero-action-card {
    animation: heroLinkVibrate 2.8s ease-in-out infinite !important;
  }

  .hero-action-card:nth-child(2) {
    animation-delay: 0.25s !important;
  }

  .hero-action-card:nth-child(3) {
    animation-delay: 0.5s !important;
  }

  .hero-action-title {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(250, 186, 0, 0.55);
  }
}

@keyframes heroLinkVibrate {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 0 rgba(250, 186, 0, 0));
  }

  50% {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(250, 186, 0, 0.22));
  }
}
.hero-action-title {
  text-decoration: none !important;
}
.hero-action-card:hover,
.hero-action-card:focus-visible {
  transform: none !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  filter:
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)) !important;
}

.hero-action-card:hover .hero-action-title,
.hero-action-card:focus-visible .hero-action-title {
  color: var(--yellow) !important;
  filter: none !important;
}

.hero-action-card:hover .hero-action-icon,
.hero-action-card:focus-visible .hero-action-icon,
.hero-action-card:hover .hero-action-icon-map,
.hero-action-card:focus-visible .hero-action-icon-map,
.hero-action-card:hover .hero-action-icon-guide,
.hero-action-card:focus-visible .hero-action-icon-guide {
  filter: grayscale(1) contrast(1.05)
    drop-shadow(0 5px 10px rgba(0, 0, 0, 0.65)) !important;
}
.hero-action-card:hover,
.hero-action-card:focus-visible {
  animation: none !important;
  transform: translateY(-2px) !important;
}
@media (min-width: 901px) {
  .hero-action-icon,
  .hero-action-icon-map,
  .hero-action-icon-guide {
    animation: heroIconPulse 2.8s ease-in-out infinite;
  }
}

@keyframes heroIconPulse {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}
.hero-quote-ornament,
.hero-quote-ornament-bottom,
.hero-quote-wrap::before,
.hero-quote-wrap::after {
  pointer-events: none !important;
}
/* =========================
   HERO-LAINAUS: YKSI YHTEINEN SIIRTOVIPU
   ========================= */
@media (min-width: 901px) {
  .hero-action-panel {
    top: calc(100% + 50px) !important;
    gap: clamp(6px, 1.1vw, 18px) !important;
  }
}
:root {
  --hero-quote-y: 70px;
}
.hero-eyebrow {
  line-height: 0.92 !important;
}
.hero-quote-wrap {
  transform: translateY(var(--hero-quote-y)) !important;
}

/* estää tekstin erillisen karkaamisen */
.hero-forest-quote {
  transform: none !important;
}
.source-ref {
  position: relative;
  top: -0.35em;
  margin-left: 2px;
  color: rgba(232, 221, 196, 0.82);
  font-family: var(--font-inter);
  font-size: 0.48em;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  vertical-align: baseline;
}

.copyright .source-ref {
  top: -0.25em;
  margin-right: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75em;
}
.hero-forest-quote .source-ref {
  color: #faba00 !important;
  font-size: 0.62em !important;
  font-weight: 800 !important;
  top: -0.55em !important;
  margin-left: 3px !important;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(250, 186, 0, 0.45) !important;
}
/* 1280 x 591 -tyyppinen matala desktop */
@media (min-width: 901px) and (max-width: 1399px) and (max-height: 650px) {
  .hero-quote-wrap::before {
    top: 36px !important; /* yläviiva: isompi = alemmas */
  }

  .hero-quote-ornament:not(.hero-quote-ornament-bottom) {
    top: 25px !important; /* yläornamentti: isompi = alemmas */
  }
   .hero-quote-wrap::after {
    bottom: -5px !important;
  }


  .hero-eyebrow {
  transform: translateY(47px) !important;
}

.hero-title {
  transform: translateY(47px) !important;
}
}
#yhteys .contact-inner {
  width: min(92vw, 820px) !important;
  padding: 42px 34px !important;
  border: 1px solid rgba(250, 186, 0, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(7, 10, 12, 0.78) 0%,
      rgba(10, 13, 15, 0.88) 100%
    );
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#yhteys .copyright {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

#yhteys .contact-email a {
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(250, 186, 0, 0.2);
}
.source-ref-link {
  color: inherit;
  text-decoration: none;
  border: 0;
}

.source-ref-link:hover .source-ref,
.source-ref-link:focus-visible .source-ref {
  color: var(--yellow) !important;
}
@media (min-width: 901px) {
  .hero-image {
    transform: translateY(-15%) scale(0.54) !important;
  }
}
@media (min-width: 901px) and (max-width: 1399px) and (max-height: 650px) {
  .hero-quote-ornament-bottom {
    top: auto !important;
    bottom: -12px !important;
    transform: translateX(-50%) rotate(180deg) !important;
  }
}
/* =========================================================
   MOBILE HERO FINAL OVERRIDE
   Tämä pitää olla CSS-tiedoston viimeisenä
   ========================================================= */

@media (max-width: 900px) {
  :root {
    --mobile-banner-top: 20px;
    --mobile-banner-height: 54px;
  }

  .home-section {
    position: relative !important;
    display: block !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .home-stack {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
  }

  /* Taustakarhu mobiilissa */
  .hero-image-wrap,
  .scroll-bear-layer {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    pointer-events: none !important;
  }

  .hero-image {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center 38% !important;
    opacity: 0.88 !important;
    filter: brightness(0.62) contrast(1.12) saturate(0.95) !important;
    transform: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  /* Tumma kerros tekstien luettavuuteen */
  #home::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.36) 0%,
        rgba(0, 0, 0, 0.28) 28%,
        rgba(0, 0, 0, 0.58) 58%,
        rgba(0, 0, 0, 0.82) 100%
      );
  }

  /* Koko hero-sisältö */
  #home .hero-title-block {
    position: relative !important;
    z-index: 2 !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    padding:
      calc(var(--mobile-banner-top) + var(--mobile-banner-height) + 92px)
      18px
      92px !important;
    text-align: center !important;
    transform: none !important;
  }

  /* Pääotsikko */
  .hero-eyebrow {
    width: min(100%, 360px) !important;
    margin: 0 auto !important;
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: clamp(32px, 10vw, 43px) !important;
    line-height: 1.05 !important;
    letter-spacing: 0.13em !important;
    text-align: center !important;
    white-space: normal !important;
    transform: none !important;
    text-shadow:
      0 3px 8px rgba(0, 0, 0, 0.95),
      0 14px 28px rgba(0, 0, 0, 0.72) !important;
  }

  .hero-title {
    margin-top: 7px !important;
    color: #faba00 !important;
    font-size: clamp(25px, 7.4vw, 34px) !important;
    line-height: 1 !important;
    letter-spacing: 0.03em !important;
    transform: none !important;
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.95),
      0 0 8px rgba(250, 186, 0, 0.25) !important;
  }

  /* Lainaus näkyviin mobiilissa */
  .hero-quote-wrap {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    z-index: 2 !important;
    width: min(100%, 350px) !important;
    margin: 18px auto 0 !important;
    padding: 12px 14px 11px !important;
    border-top: 1px solid rgba(217, 184, 111, 0.26) !important;
    border-bottom: 1px solid rgba(217, 184, 111, 0.22) !important;
    border-radius: 14px !important;
    background: rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .hero-quote-wrap::before,
  .hero-quote-wrap::after,
  .hero-quote-ornament,
  .hero-quote-ornament-bottom {
    display: none !important;
  }

  .hero-forest-quote {
    width: 100% !important;
    margin: 0 !important;
    color: rgba(236, 229, 211, 0.86) !important;
    font-family: var(--font-cormorant) !important;
    font-size: clamp(15px, 4.2vw, 18px) !important;
    font-style: italic !important;
    font-weight: 500 !important;
    line-height: 1.18 !important;
    letter-spacing: 0.01em !important;
    text-align: center !important;
    text-shadow:
      0 2px 5px rgba(0, 0, 0, 0.95),
      0 8px 18px rgba(0, 0, 0, 0.75) !important;
    transform: none !important;
  }

  .hero-forest-quote span {
    display: block !important;
    margin-top: 6px !important;
    color: rgba(236, 229, 211, 0.68) !important;
    font-size: 0.78em !important;
    line-height: 1.2 !important;
  }

  /* Kolme etusivun nappia mobiiliin */
  .hero-action-panel {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: 3 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    width: min(100%, 350px) !important;
    margin: auto auto 0 !important;
    padding-top: 24px !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .hero-action-card {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 46px 1fr 22px !important;
    align-items: center !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 8px 13px !important;
    overflow: hidden !important;

    border: 1px solid rgba(250, 186, 0, 0.28) !important;
    border-radius: 18px !important;
    color: rgba(255, 255, 255, 0.86) !important;
    text-decoration: none !important;

    background:
      linear-gradient(
        180deg,
        rgba(18, 22, 22, 0.62) 0%,
        rgba(6, 8, 8, 0.72) 100%
      ) !important;

    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;

    backdrop-filter: blur(9px) saturate(1.06) !important;
    -webkit-backdrop-filter: blur(9px) saturate(1.06) !important;

    animation: none !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-action-card::before {
    content: "";
    display: none !important;
  }

  .hero-action-card::after {
    content: "›" !important;
    display: block !important;
    grid-column: 3 !important;
    justify-self: end !important;
    color: #faba00 !important;
    font-family: Georgia, serif !important;
    font-size: 28px !important;
    line-height: 1 !important;
  }

  .hero-action-icon,
  .hero-action-icon-map,
  .hero-action-icon-guide {
    display: block !important;
    grid-column: 1 !important;
    width: 34px !important;
    height: 34px !important;
    justify-self: center !important;
    object-fit: contain !important;
    border-radius: 999px !important;
    animation: none !important;
    filter:
      drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7))
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.08)) !important;
  }

  .hero-action-icon-map {
    width: 40px !important;
    height: 32px !important;
    border-radius: 0 !important;
  }

  .hero-action-icon-guide {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover !important;
  }

  .hero-action-title {
    grid-column: 2 !important;
    display: block !important;
    width: auto !important;
    padding-left: 8px !important;
    color: rgba(255, 255, 255, 0.86) !important;
    font-family: var(--font-vollkorn) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.06 !important;
    letter-spacing: 0.055em !important;
    text-align: left !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.95),
      0 7px 14px rgba(0, 0, 0, 0.72) !important;
    filter: none !important;
  }

  .hero-action-text {
    display: none !important;
  }

  .hero-action-card:hover,
  .hero-action-card:focus-visible {
    border-color: rgba(250, 186, 0, 0.62) !important;
    background:
      linear-gradient(
        180deg,
        rgba(28, 32, 30, 0.72) 0%,
        rgba(10, 12, 11, 0.82) 100%
      ) !important;
    outline: none !important;
    transform: translateY(-1px) !important;
    filter: none !important;
  }

  .hero-action-card:hover .hero-action-title,
  .hero-action-card:focus-visible .hero-action-title {
    color: #faba00 !important;
  }

  /* Etusivun alasnuoli pois mobiilin nappien päältä */
  .fixed-gold-scroll {
    bottom: 18px !important;
    width: 30px !important;
    height: 30px !important;
    z-index: 4 !important;
  }
}

@media (max-width: 400px) {
  #home .hero-title-block {
    padding-top: 90px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 60px !important;
  }

  .hero-eyebrow {
    font-size: 35px !important;
  }

  .hero-title {
    font-size: 30px !important;
  }

  .hero-quote-wrap {
    margin-top: 29px !important;
    padding: 9px 11px !important;
  }

  .hero-forest-quote {
    font-size: 19px !important;
    line-height: 1.14 !important;
  }

  .hero-action-panel {
    gap: 7px !important;
    padding-top: 16px !important;
  }

  .hero-action-card {
    height: 53px !important;
    min-height: 53px !important;
    border-radius: 16px !important;
  }

  .hero-action-title {
    font-size: 13px !important;
  }
}