.history-page {
  background: #f5f2e9;
}

.history-page .whatsapp-hidden[hidden] {
  display: none !important;
}

.hero-history {
  min-height: 100svh;
  overflow: hidden;
  background-image: url("/images/mountain/history/history-saami.webp");
  background-position: center 44%;
}

.hero-history h1 {
  max-width: 980px;
  font-size: clamp(4rem, 8.5vw, 7.7rem);
}

.hero-history h1 em {
  display: block;
  color: #dfc278;
  font-size: 0.72em;
  font-style: italic;
}

.history-invitation {
  padding: 88px 0;
  color: #fffdf7;
  background: #101b15;
}

.history-invitation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 90px;
  align-items: start;
}

.history-invitation h2,
.history-events h2,
.history-source h2 {
  font-size: clamp(2.9rem, 5vw, 5rem);
}

.history-invitation p {
  margin: 0;
  color: rgba(255, 253, 247, 0.72);
  font-size: 1.05rem;
}

.history-invitation p + p {
  margin-top: 20px;
}

.history-reasons {
  padding-top: 120px;
  padding-bottom: 130px;
}

.history-reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.history-reason-card {
  min-height: 390px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white-local);
  box-shadow: 0 18px 58px rgba(15, 32, 24, 0.06);
}

.history-reason-card > span {
  color: var(--gold-local);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.3rem;
}

.history-reason-card h3 {
  margin: 90px 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1.02;
}

.history-reason-card p {
  margin: 0;
  color: #59655e;
}

.history-sacred {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white-local);
  background:
    url("/images/mountain/history/history-saami.webp") center 48% / cover no-repeat fixed;
}

.history-sacred-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 8, 0.96) 0%, rgba(5, 11, 8, 0.75) 57%, rgba(5, 11, 8, 0.26) 100%),
    linear-gradient(180deg, rgba(5, 11, 8, 0.18), rgba(5, 11, 8, 0.62));
}

.history-sacred-rings {
  position: absolute;
  top: 50%;
  right: 6%;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(223, 194, 120, 0.25);
  border-radius: 50%;
  transform: translateY(-50%);
}

.history-sacred-rings::before,
.history-sacred-rings::after {
  position: absolute;
  border: 1px solid rgba(223, 194, 120, 0.16);
  border-radius: 50%;
  content: "";
}

.history-sacred-rings::before {
  inset: 65px;
}

.history-sacred-rings::after {
  inset: 130px;
}

.history-sacred-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 120px;
}

.history-sacred-content h2 {
  max-width: 780px;
  font-size: clamp(3.6rem, 7vw, 7rem);
}

.history-sacred-content > p {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 253, 247, 0.8);
  font-size: 1.08rem;
}

.history-sacred-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.history-journey {
  padding-top: 130px;
  padding-bottom: 140px;
}

.history-time-map {
  margin-top: 54px;
  padding: 28px 30px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.72);
  box-shadow: 0 18px 58px rgba(15, 32, 24, 0.05);
}

.history-time-map ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-time-map ol::before {
  position: absolute;
  top: 16px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, rgba(181, 142, 56, 0.2), var(--gold-local), rgba(181, 142, 56, 0.2));
  content: "";
}

.history-time-map a {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.history-time-map a > span {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid var(--gold-local);
  border-radius: 50%;
  color: #fffdf7;
  background: #17251e;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 7px #f7f3e9;
}

.history-time-map b {
  margin-top: 19px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.05;
}

.history-time-map small {
  margin-top: 5px;
  color: #6c766f;
  font-size: 0.75rem;
}

.history-time-map a:hover b,
.history-time-map a:focus-visible b {
  color: var(--gold-local);
}

.history-timeline {
  position: relative;
  margin-top: 58px;
}

.history-timeline::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 35px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-local), rgba(181, 142, 56, 0.16));
  content: "";
}

.history-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 0.95fr) minmax(360px, 1.05fr);
  min-height: 520px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white-local);
  box-shadow: var(--shadow);
}

.history-chapter:first-child {
  margin-top: 0;
}

.history-chapter:nth-child(even) {
  background: #f0ece1;
}

.history-chapter-index {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 42px;
  background: rgba(16, 27, 21, 0.97);
}

.history-chapter-index span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(223, 194, 120, 0.72);
  border-radius: 50%;
  color: #dfc278;
  background: #101b15;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 8px #101b15;
}

.history-chapter-image {
  min-height: 520px;
}

.history-chapter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-chapter-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 52px;
}

.history-chapter-copy h3 {
  margin: 10px 0 24px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.7rem, 4.5vw, 4.6rem);
  line-height: 0.98;
}

.history-chapter-copy p {
  margin: 0;
  color: #58645d;
}

.history-chapter-copy .text-link {
  margin-top: 34px;
}

.history-products {
  padding: 130px 0;
  color: var(--white-local);
  background: #111b16;
}

.history-products .section-heading > p {
  color: rgba(255, 253, 247, 0.67);
}

.history-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.history-product-card {
  position: relative;
  min-height: 530px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
  padding: 36px;
  border: 1px solid rgba(255, 253, 247, 0.16);
  border-radius: 24px;
  color: var(--white-local);
  background-position: center;
  background-size: cover;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease;
}

.history-product-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 13, 10, 0.08) 18%, rgba(7, 13, 10, 0.94) 100%);
  content: "";
}

.history-product-card:hover {
  border-color: rgba(223, 194, 120, 0.72);
  transform: translateY(-5px);
}

.history-product-one {
  background-image: url("/images/mountain/history/history-geology.webp");
}

.history-product-weekend {
  background-image: url("/images/mountain/hero-mountain.webp");
}

.history-product-camp {
  background-image: url("/images/mountain/dead-forest.webp");
}

.history-product-card h3 {
  margin: 12px 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.7rem;
  line-height: 1;
}

.history-product-card p {
  margin: 0;
  color: rgba(255, 253, 247, 0.74);
}

.history-product-card b {
  margin-top: 34px;
  color: #dfc278;
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-events {
  padding: 130px 0;
  background: var(--paper-deep);
}

.history-events-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  gap: 80px;
  align-items: end;
}

.history-events-heading > p {
  margin: 0 0 10px;
  color: #59655e;
}

.history-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 58px;
}

.history-event-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white-local);
}

.history-event-date {
  margin: 0 0 42px;
  color: var(--gold-local);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.history-event-card h3 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.history-event-card > p:not(.history-event-date) {
  margin: 0;
  color: #59655e;
}

.history-event-card a {
  margin-top: auto;
  padding-top: 30px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.history-events-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.history-source {
  padding: 100px 0;
  background: var(--white-local);
}

.history-source-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 90px;
}

.history-source-grid p {
  margin: 0;
  color: #59655e;
}

.history-source-links {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.history-source-links a {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.history-conversion {
  background-image: url("/images/mountain/history/history-modern.webp");
}

@media (max-width: 1080px) {
  .history-reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-product-grid {
    grid-template-columns: 1fr;
  }

  .history-product-card {
    min-height: 450px;
  }
}

@media (max-width: 820px) {
  .history-invitation-grid,
  .history-events-heading,
  .history-source-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .history-time-map {
    overflow-x: auto;
    padding-right: 22px;
    padding-left: 22px;
  }

  .history-time-map ol {
    min-width: 680px;
  }

  .history-timeline::before {
    display: none;
  }

  .history-chapter {
    grid-template-columns: 1fr;
  }

  .history-chapter-index {
    justify-content: flex-start;
    min-height: 70px;
    padding: 16px 24px;
    align-items: center;
  }

  .history-chapter-image {
    min-height: 470px;
  }

  .history-event-grid {
    grid-template-columns: 1fr;
  }

  .history-sacred {
    background-attachment: scroll;
  }
}

@media (max-width: 560px) {
  .hero-history h1 {
    font-size: clamp(3.3rem, 16vw, 4.6rem);
  }

  .hero-history h1 em {
    font-size: 0.66em;
    line-height: 1.08;
  }

  .history-invitation,
  .history-source {
    padding: 72px 0;
  }

  .history-reasons,
  .history-journey,
  .history-products,
  .history-events {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .history-reason-grid {
    grid-template-columns: 1fr;
  }

  .history-reason-card {
    min-height: 0;
  }

  .history-reason-card h3 {
    margin-top: 46px;
  }

  .history-sacred {
    min-height: 760px;
  }

  .history-sacred-content {
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .history-sacred-content h2 {
    font-size: clamp(3.2rem, 15vw, 4.6rem);
  }

  .history-sacred-rings {
    right: -140px;
    width: 340px;
    height: 340px;
  }

  .history-sacred-actions,
  .history-events-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .history-chapter {
    min-height: 0;
    border-radius: 20px;
  }

  .history-time-map {
    margin-top: 40px;
  }

  .history-timeline {
    margin-top: 38px;
  }

  .history-chapter-image {
    min-height: 330px;
  }

  .history-chapter-copy {
    padding: 42px 24px;
  }

  .history-product-card {
    min-height: 430px;
    padding: 28px;
  }

  .history-event-card {
    min-height: 0;
    padding: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-sacred {
    background-attachment: scroll;
  }
}
