.public-hero {
  position: relative;
  display: grid;
  justify-items: stretch;
  align-content: end;
  gap: 0;
  min-height: calc(100dvh - 3.5rem);
  padding: 0;
  overflow: hidden;
  color: #10231a;
  isolation: isolate;
  animation: public-hero-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.public-hero:not(.public-hero--photo) {
  background:
    radial-gradient(
      ellipse 70% 55% at 88% 12%,
      rgb(247 232 22 / 0.32),
      transparent 58%
    ),
    radial-gradient(
      ellipse 65% 50% at 8% 88%,
      rgb(6 123 58 / 0.26),
      transparent 52%
    ),
    linear-gradient(
      145deg,
      rgb(248 250 248 / 0.92),
      rgb(236 253 243 / 0.78) 48%,
      rgb(255 248 220 / 0.62)
    ),
    url("/logo/remire-montjoly.svg");
  background-size: auto, auto, auto, min(58vw, 34rem);
  background-repeat: no-repeat;
  background-position:
    center,
    center,
    center,
    right -2% bottom -12%;
}

.public-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.public-hero__media--slot {
  object-fit: unset;
  overflow: hidden;
}

.public-hero--banner .public-hero__media {
  object-position: center top;
}

.public-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgb(4 45 24 / 0.78) 0%,
      rgb(4 45 24 / 0.55) 38%,
      rgb(4 45 24 / 0.22) 68%,
      rgb(4 45 24 / 0.12) 100%
    ),
    linear-gradient(0deg, rgb(4 45 24 / 0.45) 0%, transparent 42%);
}

.public-hero:not(.public-hero--photo) .public-hero__scrim {
  display: none;
}

.public-hero__content {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 4vw, 3.5rem)
    clamp(2rem, 5vw, 3.75rem);
}

.public-hero--photo .public-hero__content {
  color: #fff;
}

.public-hero__logo {
  position: absolute;
  z-index: 4;
  top: clamp(1rem, 2.5vw, 1.75rem);
  right: clamp(1rem, 3vw, 2rem);
  width: min(100%, 10.5rem);
}

.public-hero__logo--start {
  position: relative;
  top: auto;
  right: auto;
  width: clamp(4.75rem, 12vw, 6.75rem);
  height: clamp(4.75rem, 12vw, 6.75rem);
  flex-shrink: 0;
  align-self: start;
}

.public-hero__logo--pathway {
  display: grid;
  place-items: center;
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.22);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.28),
    0 10px 24px rgb(0 0 0 / 0.22);
}

.public-hero__pathway-icon {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.public-hero--photo .public-hero__logo--pathway {
  background: rgb(255 255 255 / 0.24);
}

.public-hero--photo .public-hero__logo--pathway .public-hero__pathway-icon {
  /* Override photo logo img treatment */
  filter: none;
  background: #fff;
  border-radius: 0;
  padding: 0;
}

.public-hero__content--logo-start {
  display: grid;
  justify-items: start;
  align-content: end;
  gap: 0.75rem;
}

.public-hero__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(0.95rem, 2.5vw, 1.5rem);
  align-items: start;
  width: 100%;
}

.public-hero__copy {
  display: grid;
  gap: 1rem;
  min-width: 0;
  align-content: start;
}

.public-hero--banner .public-hero__copy {
  gap: 0.55rem;
}

.public-hero--banner .public-hero__content--logo-start {
  gap: 0.7rem;
}

.public-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(249 189 103 / 0.95);
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.public-hero__back:hover {
  color: #fff;
}

.public-hero__back:hover .public-hero__back-icon {
  transform: translateX(-2px);
}

.public-hero__back-icon {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 180ms ease;
}

.public-hero__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.public-hero__logo .village-logo,
.public-hero__logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgb(15 23 42 / 0.12));
}

.public-hero__logo--start img,
.public-hero__logo--start .public-asso-detail__hero-monogram {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.85rem;
}

.public-hero--photo .public-hero__logo .village-logo,
.public-hero--photo .public-hero__logo img {
  filter: drop-shadow(0 8px 20px rgb(0 0 0 / 0.35));
  background: rgb(255 255 255 / 0.92);
  border-radius: 0.55rem;
  padding: 0.4rem 0.55rem;
}

.public-hero--photo .public-hero__logo--start img {
  height: 100%;
  padding: 0.35rem;
  border-radius: 0.85rem;
}

.public-hero__brand {
  margin: 0;
  max-width: 12em;
  font-family: var(--ds-font-display);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--ds-color-primary);
  text-shadow: none;
}

.public-hero--photo .public-hero__brand {
  color: #fff;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.35);
}

.public-hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  white-space: pre-line;
  color: var(--ds-color-label);
}

.public-hero--photo .public-hero__lead {
  color: rgb(255 255 255 / 0.92);
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.3);
}

.public-hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.public-hero__cta,
.public-hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font-family: var(
    --ds-font-button,
    var(--ds-font-accent, "Poppins", sans-serif)
  );
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: var(--ds-button-line-height, 1.2);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.public-hero__cta {
  color: #fff;
  background: var(--ds-color-primary);
}

.public-hero--photo .public-hero__cta {
  color: #10231a;
  background: var(--ds-color-yellow);
}

.public-hero__cta:hover {
  background: var(--ds-color-primary-hover);
  transform: translateY(-1px);
}

.public-hero--photo .public-hero__cta:hover {
  background: #fff;
}

.public-hero__cta-secondary {
  color: var(--ds-color-primary);
  border-color: rgb(6 123 58 / 0.35);
  background: rgb(255 255 255 / 0.72);
}

.public-hero--photo .public-hero__cta-secondary {
  color: #fff;
  border-color: rgb(255 255 255 / 0.55);
  background: rgb(255 255 255 / 0.12);
}

.public-hero__cta-secondary:hover {
  border-color: var(--ds-color-primary);
  background: #fff;
  transform: translateY(-1px);
}

.public-hero--photo .public-hero__cta-secondary:hover {
  color: #10231a;
  border-color: #fff;
  background: #fff;
}

.public-hero__caption {
  --caption-gold: #e8c78a;
  --caption-gold-soft: rgb(232 199 138 / 0.45);
  position: absolute;
  z-index: 3;
  right: clamp(0.85rem, 2.8vw, 2rem);
  bottom: clamp(0.85rem, 2.4vw, 1.65rem);
  width: min(22.5rem, calc(100vw - 2rem));
  margin: 0;
  pointer-events: none;
  animation: public-hero-caption-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 280ms
    both;
}

.public-hero__caption-frame {
  position: absolute;
  inset: 0;
  border-radius: 0.2rem;
  border: 1px solid var(--caption-gold-soft);
  background:
    linear-gradient(
      155deg,
      rgb(255 255 255 / 0.16) 0%,
      rgb(18 42 30 / 0.88) 48%,
      rgb(6 22 14 / 0.94) 100%
    ),
    rgb(6 22 14 / 0.92);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.12) inset,
    0 18px 40px rgb(0 0 0 / 0.28);
}

.public-hero__caption-frame::before,
.public-hero__caption-frame::after {
  content: "";
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border-color: var(--caption-gold);
  border-style: solid;
  opacity: 0.9;
}

.public-hero__caption-frame::before {
  top: 0.45rem;
  left: 0.45rem;
  border-width: 1px 0 0 1px;
}

.public-hero__caption-frame::after {
  right: 0.45rem;
  bottom: 0.45rem;
  border-width: 0 1px 1px 0;
}

.public-hero__caption-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem 1.25rem 1.2rem;
}

.public-hero__caption-eyebrow {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caption-gold);
}

.public-hero__caption-title {
  margin: 0;
  font-family: var(--ds-font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fffef8;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.28);
}

.public-hero__caption-text {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: rgb(255 252 245 / 0.86);
}

.public-hero__caption-title + .public-hero__caption-text {
  padding-top: 0.55rem;
  border-top: 1px solid rgb(232 199 138 / 0.28);
}

.public-hero__caption-detail {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: rgb(255 252 245 / 0.68);
  padding-top: 0.35rem;
  border-top: 1px solid rgb(232 199 138 / 0.14);
}

.public-hero:not(.public-hero--photo) .public-hero__caption-detail {
  color: rgb(16 35 26 / 0.55);
  border-top-color: rgb(196 163 90 / 0.2);
}

.public-hero:not(.public-hero--photo) .public-hero__caption-frame {
  background: linear-gradient(155deg, #ffffff, #f8faf8);
  border-color: rgb(16 35 26 / 0.12);
  box-shadow: 0 12px 28px rgb(16 35 26 / 0.08);
}

.public-hero:not(.public-hero--photo) .public-hero__caption-frame::before,
.public-hero:not(.public-hero--photo) .public-hero__caption-frame::after {
  border-color: #c4a35a;
}

.public-hero:not(.public-hero--photo) .public-hero__caption-eyebrow {
  color: #9a7a3a;
}

.public-hero:not(.public-hero--photo) .public-hero__caption-title {
  color: #10231a;
  text-shadow: none;
}

.public-hero:not(.public-hero--photo) .public-hero__caption-text {
  color: rgb(16 35 26 / 0.72);
}

.public-hero:not(.public-hero--photo)
  .public-hero__caption-title
  + .public-hero__caption-text {
  border-top-color: rgb(196 163 90 / 0.35);
}

@keyframes public-hero-caption-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Banner variant for inner public pages */
.public-hero.public-hero--banner {
  min-height: clamp(17rem, 46vw, 22.5rem);
  align-content: end;
}

.public-hero--banner .public-hero__content {
  gap: 0.55rem;
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: clamp(2.4rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem)
    clamp(1.85rem, 3.8vw, 2.6rem);
}

.public-hero--banner .public-hero__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(249 189 103 / 0.95);
}

.public-hero--banner .public-hero__brand {
  max-width: 14em;
  font-size: clamp(2.35rem, 6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.public-hero--banner .public-hero__lead {
  max-width: 36rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.5;
  opacity: 0.95;
}

.public-hero__stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1.25rem;
  margin-top: 0.55rem;
  min-height: 2.85rem;
}

.public-hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  min-height: 2.85rem;
}

.public-hero__stats-period {
  margin: 0 0 0.15rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.28);
  background: rgb(255 255 255 / 0.1);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.88);
  line-height: 1;
}

.public-hero:not(.public-hero--photo) .public-hero__stats-period {
  border-color: rgb(16 35 26 / 0.12);
  background: rgb(0 127 139 / 0.08);
  color: var(--ds-color-primary);
}

.public-hero__stat {
  display: grid;
  gap: 0.15rem;
  align-content: start;
  min-width: 5.5rem;
  min-height: 2.85rem;
}

.public-hero__stat-value {
  display: block;
  min-height: 1.55rem;
  font-family: var(--ds-font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.public-hero:not(.public-hero--photo) .public-hero__stat-value {
  color: var(--ds-color-primary);
}

.public-hero__stat-label {
  display: block;
  min-height: 1rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.78);
}

.public-hero:not(.public-hero--photo) .public-hero__stat-label {
  color: var(--ds-color-label);
}

.public-hero__stat-skeleton-value,
.public-hero__stat-skeleton-label {
  display: block;
  opacity: 0.55;
}

.public-hero--photo .public-hero__stat-skeleton-value,
.public-hero--photo .public-hero__stat-skeleton-label {
  background: linear-gradient(
    90deg,
    rgb(255 255 255 / 0.22) 25%,
    rgb(255 255 255 / 0.38) 50%,
    rgb(255 255 255 / 0.22) 75%
  );
  background-size: 200% 100%;
}

.public-hero--banner .public-hero__cta-group {
  margin-top: 0.55rem;
}

.public-hero--banner .public-hero__cta,
.public-hero--banner .public-hero__cta-secondary {
  padding: 0.7rem 1.1rem;
  font-size: 0.875rem;
}

.public-hero--banner .public-hero__caption {
  bottom: clamp(1.1rem, 2.8vw, 1.85rem);
}

.public-hero--banner .public-hero__media {
  object-position: center top;
}

.public-hero--banner .public-hero__scrim {
  background:
    linear-gradient(
      105deg,
      rgb(4 45 24 / 0.88) 0%,
      rgb(4 45 24 / 0.62) 42%,
      rgb(4 45 24 / 0.28) 100%
    ),
    linear-gradient(0deg, rgb(4 45 24 / 0.35) 0%, transparent 48%);
}

@media (max-width: 720px) {
  .public-hero.public-hero--banner {
    min-height: clamp(15rem, 68vw, 19rem);
  }

  .public-hero--banner .public-hero__caption {
    display: none;
  }
}

@keyframes public-hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  .public-hero:not(.public-hero--photo) {
    background-position:
      center,
      center,
      center,
      right -18% bottom -18%;
    background-size: auto, auto, auto, min(78vw, 24rem);
  }
}

@media (max-width: 560px) {
  .public-hero:not(.public-hero--banner) {
    align-content: center;
  }

  .public-hero__cta,
  .public-hero__cta-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-hero,
  .public-hero__caption,
  .public-hero__cta,
  .public-hero__cta-secondary {
    animation: none;
    transition: none;
  }

  .public-hero__cta:hover,
  .public-hero__cta-secondary:hover {
    transform: none;
  }
}

/* List pages: sticky banner, content scrolls over it */
.public-sticky-banner {
  position: relative;
}

.public-sticky-banner > .public-hero.public-hero--banner {
  position: sticky;
  top: 0;
  z-index: 1;
}

.public-sticky-banner > .public-sticky-banner__body {
  --public-sheet-radius: 1.35rem;
  position: relative;
  z-index: 2;
  width: min(100%, 72rem);
  max-width: 72rem;
  margin: 0.75rem auto 0;
  box-sizing: border-box;
  background: transparent;
  border-radius: var(--public-sheet-radius) var(--public-sheet-radius) 0 0;
}

.public-sticky-banner--solid-body > .public-sticky-banner__body {
  background: #fff;
  border-top: 1px solid rgb(16 35 26 / 0.06);
  box-shadow: 0 -18px 40px rgb(16 35 26 / 0.08);
}
