/* Retiring Wild — FMG CMS scrollytelling takeover */

/* Playfair Display is loaded via preconnect + <link> in the CMS paste, not
   from here. Do not add an @import: it would chain a second request behind
   this stylesheet instead of running alongside it. */

html:has(.rw-wrapper),
body:has(.rw-wrapper) {
  overflow-x: clip;
}

body:has(.rw-wrapper) {
  background: #fff !important;
}

body:has(.rw-wrapper) .back-to-top,
body:has(.rw-wrapper) .c-matter__meta,
body:has(.rw-wrapper) .c-matter__title {
  display: none !important;
}

body:has(.rw-wrapper) .c-matter__body,
body:has(.rw-wrapper) .c-matter--article .c-matter__body {
  overflow: visible !important;
}

.rw-wrapper {
  --rw-forest: #1b2e24;
  --rw-pine: #2c4436;
  --rw-snow: #faf8f5;
  --rw-sand: #eae5dc;
  --rw-amber: #d97706;
  --rw-sage: #64a37e;
  --rw-normal: 1;
  --rw-pinned: 10;
  --rw-sticky: 100;
  --rw-overlay: 500;
  --rw-xs: 8px;
  --rw-sm: 16px;
  --rw-md: 24px;
  --rw-lg: 48px;
  --rw-xl: 80px;
  --rw-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --rw-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --rw-measure: 65ch;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: var(--rw-snow);
  color: var(--rw-forest);
  font-family: var(--rw-sans);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
}

.c-matter__body .rw-wrapper {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

.rw-wrapper *,
.rw-wrapper *::before,
.rw-wrapper *::after {
  box-sizing: border-box;
}

.rw-wrapper img {
  display: block;
  max-width: 100%;
  border: 0;
}

.rw-wrapper a {
  color: var(--rw-amber) !important;
}

.rw-wrapper a:focus-visible,
.rw-wrapper button:focus-visible {
  outline: 3px solid var(--rw-amber) !important;
  outline-offset: 4px;
}

.rw-wrapper h2,
.rw-wrapper h3,
.rw-wrapper .rw-hero__title {
  color: var(--rw-forest) !important;
  font-family: var(--rw-serif) !important;
  font-weight: 700 !important;
}

.rw-wrapper h2 {
  font-size: clamp(28px, 3.5vw, 44px) !important;
  line-height: 1.2 !important;
  margin: 0 0 var(--rw-md) !important;
}

.rw-wrapper h3 {
  font-size: 22px !important;
  line-height: 1.25 !important;
  margin: 0 0 var(--rw-sm) !important;
}

.rw-wrapper p,
.rw-wrapper li {
  max-width: var(--rw-measure);
  font-size: 18px !important;
  line-height: 1.65 !important;
}

.rw-wrapper p {
  margin: 0 !important;
}

.rw-wrapper p + p {
  margin-top: var(--rw-md) !important;
}

.rw-wrapper sup {
  font-size: 12px !important;
}

.rw-plate {
  background: rgba(250, 248, 245, 0.94);
  border-radius: 8px;
  padding: var(--rw-md);
  color: var(--rw-forest);
}

.rw-wrapper .rw-plate p,
.rw-wrapper .rw-plate li {
  color: var(--rw-forest) !important;
}

.rw-plate--hero {
  max-width: 760px;
  background: rgba(27, 46, 36, 0.72);
  color: var(--rw-snow);
}

.rw-wrapper .rw-plate--hero .rw-hero__title,
.rw-wrapper .rw-plate--hero p {
  color: var(--rw-snow) !important;
}

.rw-wrapper .rw-hero__title {
  font-size: clamp(40px, 5vw, 72px) !important;
  line-height: 1.1 !important;
  margin: 0 0 var(--rw-md) !important;
}

.rw-wrapper .rw-hero {
  position: relative;
  z-index: var(--rw-normal);
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--rw-forest);
}

.rw-hero__media,
.rw-hero__tint,
.rw-cortisol__scene,
.rw-cortisol__bg {
  position: absolute;
  inset: 0;
}

.rw-hero__media {
  z-index: 0;
}

.rw-hero__tint,
.rw-hero__tint--deep {
  z-index: var(--rw-normal);
}

/* Resting scale must match the from-state in initHeroAnimation(). GSAP loads
   from a CDN and overwrites this inline, so any mismatch shows up as a pop
   once it initializes. Keep the three values below in sync with script.js. */
.rw-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  will-change: transform;
}

@media (max-width: 767px) {
  .rw-hero__image {
    transform: scale(1.075);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rw-hero__image {
    transform: none;
  }
}

.rw-hero__tint {
  background: rgba(27, 46, 36, 0.45);
}

.rw-hero__tint--deep {
  background: rgba(27, 46, 36, 0.4);
  opacity: 0;
}

.rw-hero__content {
  position: relative;
  z-index: var(--rw-normal);
  width: 100%;
  padding: var(--rw-lg) var(--rw-md);
  display: flex;
  justify-content: center;
}

.rw-cortisol {
  background: var(--rw-snow);
}

.rw-cortisol__split {
  position: relative;
  width: 100%;
  display: flex;
}

.rw-cortisol__copy {
  width: 45%;
  padding: var(--rw-xl) var(--rw-lg);
  z-index: var(--rw-normal);
}

.rw-cortisol__beat {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rw-cortisol__visual {
  position: sticky;
  top: 0;
  width: 55%;
  height: 100vh;
  overflow: hidden;
  z-index: var(--rw-pinned);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rw-cortisol__bg {
  background-position: center;
  background-size: cover;
}

.rw-cortisol__bg--concrete {
  background-image: url("https://fmg-websites-custom.s3.amazonaws.com/articles/retiring-wild/img/buildings.jpg");
  filter: grayscale(0.4) saturate(0.6);
}

.rw-cortisol__bg--canopy {
  background-image: url("https://fmg-websites-custom.s3.amazonaws.com/articles/retiring-wild/img/olympic-national-park.jpg");
  opacity: 0;
}

.rw-gauge--circle {
  --rw-gauge-percent: 90%;
  --rw-gauge-color: var(--rw-amber);
  position: relative;
  z-index: var(--rw-normal);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--rw-gauge-color) var(--rw-gauge-percent), rgba(44, 68, 54, 0.15) 0);
  box-shadow: 0 0 0 20px rgba(250, 248, 245, 0.35);
}

.rw-gauge--circle::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.95);
}

.rw-gauge__center {
  position: relative;
  z-index: var(--rw-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rw-gauge__label {
  margin-bottom: 4px;
  color: var(--rw-pine);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rw-gauge__value {
  color: var(--rw-forest);
  font-size: 42px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.rw-gauge__status {
  display: none;
  margin-top: 4px;
  color: var(--rw-amber);
  font-family: var(--rw-serif);
  font-size: 16px;
  font-style: italic;
}

.rw-gauge__status.is-active {
  display: inline;
}

.rw-gauge__status--calm {
  color: var(--rw-sage);
}

.rw-gauge__status--reducing {
  color: var(--rw-pine);
}

.rw-gauge--bar {
  display: none;
  width: min(92%, 420px);
  z-index: var(--rw-normal);
  padding: var(--rw-sm) var(--rw-md);
  border-radius: 8px;
  background: rgba(250, 248, 245, 0.94);
}

.rw-gauge__rail {
  height: 12px;
  margin: 8px 0;
  border-radius: 999px;
  background: rgba(44, 68, 54, 0.12);
  overflow: hidden;
}

.rw-gauge__fillbar {
  width: 90%;
  height: 100%;
  border-radius: 999px;
  background: var(--rw-amber);
  transform-origin: left center;
  will-change: transform;
}

.rw-gauge__bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.rw-gauge--bar .rw-gauge__value {
  font-size: 22px;
}

.rw-pass {
  padding: var(--rw-xl) var(--rw-md);
  background: var(--rw-sand);
}

.rw-pass__layout {
  max-width: 1280px;
  min-height: 220vh;
  margin: 0 auto;
  display: flex;
  gap: var(--rw-lg);
  align-items: flex-start;
}

.rw-pass__copy {
  position: sticky;
  top: var(--rw-lg);
  width: 45%;
}

.rw-pass__bullets {
  margin: var(--rw-md) 0 0 !important;
  padding-left: 1.2em !important;
}

.rw-pass__bullets li {
  margin-bottom: var(--rw-sm) !important;
}

.rw-pass__stage {
  position: sticky;
  top: var(--rw-lg);
  width: 55%;
}

.rw-cards {
  position: relative;
  min-height: 280px;
  margin-bottom: var(--rw-lg);
}

.rw-card {
  color: var(--rw-forest);
  border-radius: 16px;
  transform-origin: center;
  perspective: 1400px;
}

.rw-card__inner {
  position: relative;
  min-height: 220px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(27, 46, 36, 0.22);
  transform-style: preserve-3d;
}

.rw-card__face {
  padding: var(--rw-md);
  border: 1px solid rgba(27, 46, 36, 0.12);
  border-radius: 16px;
  background: linear-gradient(145deg, #f4ead0 0%, #d4b56a 48%, #c49a3c 100%);
}

.rw-card--annual {
  margin-top: -48px;
  margin-left: 48px;
}

.rw-card--annual .rw-card__face {
  background: linear-gradient(145deg, #f7f1e4 0%, #cfc3a6 55%, #a89068 100%);
}

.rw-card__toggle {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.rw-wrapper .rw-card__name {
  display: block;
  margin: 8px 0 !important;
  font-family: var(--rw-serif) !important;
}

.rw-wrapper .rw-card__price {
  display: block;
  font-size: 36px !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rw-card__panel {
  border-top: 1px solid rgba(27, 46, 36, 0.15);
}

.rw-check {
  padding: var(--rw-md);
  border-radius: 12px;
  background: var(--rw-snow);
}

.rw-wrapper .rw-check__title {
  margin-bottom: var(--rw-sm) !important;
  font-size: 18px !important;
}

.rw-check__list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.rw-check__item {
  display: flex;
  max-width: none !important;
  margin-bottom: var(--rw-sm) !important;
  gap: var(--rw-sm);
  align-items: flex-start;
}

.rw-check__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--rw-sage);
  border-radius: 50%;
  color: var(--rw-sage);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* The x and bullet glyphs sit ~1px lower on the baseline than the check.
   Trimming the content box from below re-centers the mark, not the circle. */
.rw-check__item--out .rw-check__icon,
.rw-check__item--note .rw-check__icon {
  padding-bottom: 2px;
}

.rw-check__item--out .rw-check__icon {
  border-color: var(--rw-amber);
  color: var(--rw-amber);
}

.rw-check__item--note .rw-check__icon {
  border-color: var(--rw-pine);
  color: var(--rw-pine);
}

.rw-film {
  position: relative;
  height: 430vh;
  background: var(--rw-forest);
  color: var(--rw-snow);
}

.rw-film__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.rw-film__copy {
  position: absolute;
  top: var(--rw-lg);
  left: var(--rw-md);
  z-index: var(--rw-overlay);
  max-width: 520px;
}

.rw-film__track {
  display: flex;
  gap: var(--rw-md);
  padding: 0 var(--rw-md);
  will-change: transform;
}

.rw-film__frame {
  flex: 0 0 70vw;
  max-width: 860px;
  margin: 0 !important;
}

.rw-film__frame img {
  width: 100%;
  height: 58vh;
  border-radius: 12px;
  object-fit: cover;
  will-change: transform;
}

.rw-film__frame figcaption {
  margin-top: var(--rw-sm) !important;
  color: var(--rw-sand) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.rw-sources {
  background: var(--rw-pine);
  padding: var(--rw-lg) var(--rw-md);
}

.rw-sources__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.rw-wrapper .rw-sources p {
  max-width: none;
  color: var(--rw-sand) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.rw-wrapper .rw-sources p + p {
  margin-top: var(--rw-xs) !important;
}

@media (min-width: 768px) {
  .rw-card__face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .rw-card__face--back {
    transform: rotateY(180deg);
  }

  .rw-card__toggle {
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  .rw-cortisol__split {
    flex-direction: column;
  }

  .rw-cortisol__copy {
    order: 2;
    width: 100%;
    padding: var(--rw-lg) var(--rw-sm);
  }

  .rw-cortisol__beat {
    min-height: 0;
    padding-bottom: var(--rw-lg);
  }

  .rw-cortisol__visual {
    order: 1;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 96px;
    padding: var(--rw-sm) 0;
    z-index: var(--rw-sticky);
    background: var(--rw-sand);
  }

  .rw-gauge--circle {
    display: none;
  }

  .rw-gauge--bar {
    display: block;
  }

  .rw-pass__layout {
    min-height: 0;
    flex-direction: column;
  }

  .rw-pass__copy,
  .rw-pass__stage {
    position: static;
    width: 100%;
  }

  .rw-card--annual {
    margin-top: var(--rw-md);
    margin-left: 0;
  }

  .rw-card__inner {
    min-height: 0;
  }

  .rw-card__face--back {
    display: none;
    border-top: 0;
    border-radius: 0 0 16px 16px;
  }

  .rw-card.is-open .rw-card__face--back {
    display: block;
  }

  .rw-card.is-open .rw-card__face--front {
    border-radius: 16px 16px 0 0;
  }

  .rw-film {
    height: auto;
  }

  .rw-film__pin {
    position: static;
    height: auto;
    display: block;
  }

  .rw-film__copy {
    position: relative;
    top: auto;
    left: auto;
    max-width: 720px;
    padding: var(--rw-lg) var(--rw-sm);
  }

  .rw-film__track {
    display: block;
    padding: 0 var(--rw-sm) var(--rw-lg);
  }

  .rw-film__frame {
    max-width: none;
    margin-bottom: var(--rw-md) !important;
  }

  .rw-film__frame img {
    height: 42vh;
  }
}

@media (hover: none) {
  .rw-card__toggle {
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rw-hero__image,
  .rw-film__track,
  .rw-film__frame img,
  .rw-card,
  .rw-gauge__fillbar {
    will-change: auto;
  }
}
