/* =========================
   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%);
}

.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(-15%) scale(0.54);

  -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);
}

#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%);
}

.home-forest-quote {
  margin: 0;
  font-size: clamp(0.95rem, 1.45vw, 1.35rem); /* pienempi */
  line-height: 1.32;
}

.home-forest-quote footer {
  margin-top: 0.45em;
  font-size: 0.86em;
}

/* =========================
   HERO-OTSIKKO
   ========================= */

@media (min-width: 901px) {
  #home .hero-title-block {
    position: absolute !important;
    top: 25vh !important;
    left: 50% !important;
    right: auto !important;

    width: max-content !important;
    max-width: 94vw !important;

    text-align: center !important;

    transform: translateX(-50%) !important;
  }

  #home .hero-eyebrow {
    font-size: clamp(34px, 3.2vw, 56px) !important;
    line-height: 0.95 !important;
    letter-spacing: 0.15em !important;
  }

  #home .hero-kicker {
    font-size: clamp(11px, 0.85vw, 16px) !important;
    letter-spacing: 0.22em !important;
  }
}


/* =========================
   HERO-KARHU
   ========================= */

@media (min-width: 901px) {
  #home .hero-image-wrap.scroll-bear-layer {
    position: absolute !important;
    z-index: 1 !important;

    top: 0 !important;
    left: auto !important;
    right: 320px !important;

    width: 500px !important;
    max-width: none !important;
    height: auto !important;

    margin: 0 !important;

    pointer-events: none;
    user-select: none;

    transform: none !important;
  }

  #home .hero-image-wrap.scroll-bear-layer .hero-image,
  #home .hero-image {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
    height: auto !important;

    opacity: 0.64 !important;

    object-fit: contain !important;
    object-position: center center !important;

    clip-path: inset(0 18% 0 0) !important;

    filter:
      grayscale(1)
      contrast(0.82)
      brightness(1)
      blur(0.15px)
      drop-shadow(0 0 46px rgba(135, 175, 225, 0.18)) !important;

    mix-blend-mode: screen;

    transform: none !important;

    -webkit-mask-image:
      radial-gradient(ellipse at 49% 54%,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.88) 21%,
        rgba(0, 0, 0, 0.48) 48%,
        rgba(0, 0, 0, 0.14) 76%,
        transparent 88%) !important;

    mask-image:
      radial-gradient(ellipse at 49% 54%,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.88) 21%,
        rgba(0, 0, 0, 0.48) 48%,
        rgba(0, 0, 0, 0.14) 76%,
        transparent 88%) !important;
  }
}
@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;
  }
}