:root {
  --bg: #f3efe8;
  --bg-deep: #ebe6dc;
  --ink: #1c1915;
  --ink-soft: #4a453c;
  --ink-muted: #7a7368;
  --ink-faint: #a39c90;
  --accent: #9a7b4f;
  --accent-soft: rgba(154, 123, 79, 0.55);
  --line: rgba(28, 25, 21, 0.08);
  --surface: rgba(255, 255, 255, 0.45);
  --progress-track: rgba(28, 25, 21, 0.1);
  --progress-fill: #1c1915;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, #faf7f2 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.resource-start,
.resource-end {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 48vh;
  text-align: center;
  padding: 2.5em 1.25em;
}

.resource-eyebrow {
  font-family: var(--font-body);
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 1.25em;
}

.resource-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75em, 7vw, 5em);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-style: italic;
}

.resource-subtitle {
  margin: 1.25em 0 0;
  color: var(--ink-muted);
  font-size: 1.125em;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.sticky-features__wrap {
  width: 100%;
  padding-left: 1.25em;
  padding-right: 1.25em;
  position: relative;
}

.sticky-features__scroll {
  justify-content: center;
  align-items: center;
  height: 100vh;
  display: flex;
}

.sticky-features__container {
  grid-column-gap: 1.5em;
  grid-row-gap: 1.5em;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 70em;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.sticky-features__col {
  flex: 1;
  position: relative;
}

.sticky-features__col.is--img {
  overflow: hidden;
  border-radius: 0.85em;
  box-shadow:
    0 24px 60px rgba(28, 25, 21, 0.1),
    0 8px 20px rgba(28, 25, 21, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.sticky-features__progress-w {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.25em;
  background-color: var(--progress-track);
  z-index: 5;
}

.sticky-features__progress-bar {
  width: 100%;
  height: 100%;
  background-color: var(--progress-fill);
  transform: scale3d(0, 1, 1);
  transform-origin: 0% 50%;
}

.sticky-features__img-collection {
  width: 100%;
}

.sticky-features__img-list {
  aspect-ratio: 1 / 1.3;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0.85em;
  background: linear-gradient(160deg, #e5dfd4 0%, #d4cdc2 100%);
}

.sticky-features__img-item {
  -webkit-clip-path: inset(100% 0 0 0);
  clip-path: inset(100% 0 0 0);
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  will-change: clip-path;
}

[data-sticky-feature-visual-wrap]:first-of-type {
  clip-path: inset(0% 0 0 0);
  z-index: 1;
}

.sticky-features__img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 115%;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.sticky-features__text-collection {
  height: 100%;
}

.sticky-features__text-list {
  flex-flow: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  max-height: 100%;
  display: flex;
  position: relative;
}

.sticky-features__text-item {
  grid-column-gap: 1.25em;
  grid-row-gap: 1.25em;
  visibility: hidden;
  flex-flow: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 27.5em;
  margin-left: auto;
  display: flex;
  position: absolute;
  right: 0;
}

[data-sticky-feature-item]:first-of-type {
  visibility: visible;
}

.sticky-features__heading {
  margin-top: 0;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 3.5em;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.sticky-features__p {
  color: var(--ink-muted);
  margin-bottom: 0;
  font-size: 1.125em;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  max-width: 32ch;
}

.sticky-features__p.is--link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.25s ease;
}

.sticky-features__p.is--link:hover {
  color: var(--accent);
}

.sticky-features__tag {
  background-color: rgba(28, 25, 21, 0.06);
  color: var(--accent);
  border-radius: 0.25em;
  margin-bottom: 0.25em;
  padding: 0.5em 0.7em;
  font-family: var(--font-body);
  font-size: 0.8125em;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  display: inline-block;
}

@media screen and (max-width: 767px) {
  .sticky-features__scroll {
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 100svh;
    padding-top: 1.25em;
    padding-bottom: 2.5em;
  }

  .sticky-features__container {
    grid-column-gap: 2em;
    grid-row-gap: 2em;
    flex-flow: column;
    justify-content: flex-start;
    align-items: stretch;
  }

  .sticky-features__img-list {
    aspect-ratio: 1;
  }

  .sticky-features__text-list {
    min-height: 20em;
    max-height: none;
  }

  .sticky-features__text-item {
    max-width: none;
  }

  .sticky-features__heading {
    font-size: 2.5em;
  }

  .sticky-features__p {
    font-size: 1em;
    max-width: none;
  }

  .sticky-features__tag {
    margin-bottom: 0;
  }
}
