/* =========================
   HERO / HOME
   ========================= */

.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: 63%;
  z-index: 1;

  width: 60vw;
  max-width: 920px;

  pointer-events: none;
  transform: translate(-50%, -50%);
}



.scroll-bear-layer {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: translate(-50%, -50%) scale(1);
}

#home .hero-title-block {
  --hero-heading-x: -120px;

  position: absolute;
  top: 36vh;
  left: 50%;
  z-index: 200;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100vw;
  max-width: none;
  margin: 0;
  overflow: visible;

  text-align: center;
  pointer-events: auto;

  transform: translate(-50%, -50%);
}

.hero-kicker {
  display: block;

  width: max-content;
  max-width: 92vw;
  margin: 0 auto 0.42em;

  color: rgba(220, 220, 215, 0.86);
  -webkit-text-fill-color: rgba(220, 220, 215, 0.86);

  font-family: var(--font-cinzel);
  font-size: clamp(13px, 1.05vw, 19px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.42em;
  text-align: center;
  text-transform: uppercase;

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.65),
    0 0 14px rgba(255, 255, 255, 0.12);

  pointer-events: none;
  transform: translateX(var(--hero-heading-x));
}

.hero-eyebrow {
  display: block;

  width: max-content;
  max-width: 92vw;
  margin: 0 auto 6px;

  color: #eaf3fb;
  -webkit-text-fill-color: #eaf3fb;

  font-family: var(--font-cinzel);
  font-size: clamp(44px, 4.2vw, 72px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;

  background: none;
  background-image: none;

  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.25);

  text-shadow:
    0 18px 38px rgba(0, 0, 0, 0.78),
    0 0 18px rgba(185, 215, 234, 0.18);

  transform: translateX(var(--hero-heading-x));
}

@media (min-width: 1025px) and (max-height: 650px) {
  #home .hero-title-block {
    --hero-heading-x: -105px;
    top: 36vh;
  }
}

/* =========================
   QUOTE SECTION
   ========================= */

.quote-section {
  position: relative;

  display: grid;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;

  isolation: isolate;
  place-items: center;

  background: transparent;
}

.quote-section::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -2;

  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.86) 0%,
      rgba(0, 0, 0, 0.46) 45%,
      rgba(0, 0, 0, 0.82) 100%
    );
}

.quote-stage {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;
}

.quote-inner {
  width: min(92vw, 980px);
  margin: 0 auto;
  padding:
    var(--section-top-safe)
    var(--section-side-safe)
    var(--section-bottom-safe);

  text-align: center;
}

.hero-quote-wrap {
  position: relative;

  width: min(86vw, 900px);
  margin: 0 auto;
  padding: 34px 0 32px;

  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;
  pointer-events: none;

  transform: translateX(-50%);

  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%
  );
}

.hero-quote-wrap::before {
  top: 0;
}

.hero-quote-wrap::after {
  bottom: 0;
}

.hero-quote-ornament {
  position: absolute;
  top: -12px;
  left: 50%;
  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;

  pointer-events: none;

  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(28px, 2.4vw, 46px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.22;
  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);
}

.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;
}

.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;
}

.hero-forest-quote .source-ref {
  top: -0.55em;

  margin-left: 3px;

  color: var(--yellow);
  font-size: 0.62em;
  font-weight: 800;

  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 0 8px rgba(250, 186, 0, 0.45);
}

.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);
}

/* =========================
   FIXED SCROLL BUTTON
   ========================= */

.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 var(--yellow);
  border-bottom: 2px solid var(--yellow);

  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;
}
/* =========================
   SIVUSTO KESKEN -ILMOITUS
   ========================= */

.site-work-notice {
  position: fixed;
  top: calc(var(--banner-top, 10px) + var(--banner-height, 54px) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 18px;
  max-width: calc(100vw - 32px);

  font-family: var(--font-inter, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;

  color: rgba(255, 255, 255, 0.94);
  background: rgba(14, 18, 24, 0.62);

  border: 1px solid rgba(250, 186, 0, 0.42);
  border-radius: 999px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-work-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;

  border-radius: 50%;
  background: var(--yellow, #faba00);

  box-shadow:
    0 0 0 4px rgba(250, 186, 0, 0.14),
    0 0 16px rgba(250, 186, 0, 0.72);
}

/* Mobiili */
@media (max-width: 600px) {
  .site-work-notice {
    top: calc(var(--banner-top, 10px) + var(--banner-height, 54px) + 10px);

    padding: 9px 14px;
    font-size: 11px;
    letter-spacing: 0.03em;
    white-space: normal;
    text-align: center;
  }

  .site-work-dot {
    width: 7px;
    height: 7px;
  }
}
.home-stack {
  position: relative;
}

.home-quote-wrap {
  position: absolute;
  left: 50%;
  top: 61vh;
  z-index: 5;

  width: min(760px, 88vw);
  transform: translateX(-50%);

  text-align: center;
}

.home-forest-quote {
  margin: 0;

  font-size: clamp(0.95rem, 1.45vw, 1.35rem);
  line-height: 1.28;
}

.home-forest-quote footer {
  margin-top: 0.4em;
  font-size: 0.8em;
}
@media (max-width: 900px) {
  .home-quote-wrap {
    top: 58vh;
    width: min(360px, 86vw);
  }

  .home-forest-quote {
    font-size: clamp(0.95rem, 4.4vw, 1.25rem);
    line-height: 1.22;
  }

  .home-forest-quote footer {
    font-size: 0.78em;
  }
}
@media (min-width: 901px) {
  #home .hero-title-block {
    position: absolute !important;
    top: 25vh !important;
    left: 50% !important;
    right: auto !important;
    z-index: 5 !important;

    width: max-content !important;
    max-width: 94vw !important;

    text-align: center !important;

    transform: translateX(-50%) !important;
  }

  #home .hero-kicker {
    margin: 0 0 0.45em !important;

    color: rgba(255, 255, 255, 0.76) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.76) !important;

    font-family: var(--font-cinzel, "Cinzel", serif) !important;
    font-size: clamp(11px, 0.85vw, 16px) !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.32em !important;
    text-transform: uppercase !important;

    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.9),
      0 0 18px rgba(255 , 255, 255, 0.08) !important;
  }

  #home .hero-eyebrow {
    margin: 0 !important;

    color: var(--yellow, #faba00) !important;
    -webkit-text-fill-color: var(--yellow, #faba00) !important;

    font-family: var(--font-cinzel, "Cinzel", serif) !important;
    font-size: clamp(34px, 3.2vw, 56px) !important;
    font-weight: 600 !important;
    line-height: 0.95 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    text-align: center !important;

    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.95),
      0 0 18px rgba(250, 186, 0, 0.28),
      0 12px 30px rgba(0, 0, 0, 0.78) !important;
  }
}
.hero-quote-wrap::before {
  top: 18px;
}

.hero-quote-wrap::after {
  bottom: 18px;
}
/* =========================================================
   ETUSIVU HERO-KARHU – PEHMEÄT REUNAT
   ========================================================= */

#home .hero-image-wrap.scroll-bear-layer {
  overflow: hidden !important;
}

#home .hero-image-wrap.scroll-bear-layer img {
  display: block !important;
  width: 90% !important;
  height: auto !important;

  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);

  mask-image:
    linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);

  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  filter: brightness(0.85) contrast(1.18) !important;
}
.site-under-construction {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  pointer-events: none;
}

.under-construction-btn {
  pointer-events: auto;
  border: 1px solid rgba(216, 180, 106, 0.75);
  background: rgba(8, 8, 8, 0.72);
  color: #d8b46a;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: default;
  white-space: nowrap;
}
.site-under-construction {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  pointer-events: none;
}