/* Anniversary-only hero. The homepage anniversary component is intentionally untouched. */
.anniversary-body { background: #faf9f7; }
.anniversary-body .secondary-main { width: 100%; padding: 0 0 104px; overflow: visible; }
.anniversary-body .secondary-intro-block,
.anniversary-body .secondary-layout { width: min(calc(100% - var(--page-gutter) * 2), 1480px); margin-inline: auto; }
.anniversary-body .secondary-intro-block { padding-top: clamp(72px, 8vw, 128px); }
.anniversary-hero {
  --anniversary-header: 76px;
  --anniversary-height: calc(100dvh - var(--anniversary-header));
  position: relative;
  height: calc(var(--anniversary-height) + 65svh);
  margin-bottom: calc(-1 * var(--anniversary-crop-remainder, 0px));
}
.anniversary-hero-sticky {
  position: sticky;
  top: var(--anniversary-header);
  height: var(--anniversary-height);
}
.anniversary-hero-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: clip;
  isolation: isolate;
  background: #24211e;
  clip-path: inset(0);
}
.anniversary-hero-slides,
.anniversary-hero-slide,
.anniversary-hero-shade { position: absolute; inset: 0; }
.anniversary-hero-slide { opacity: 0; transition: opacity 1s cubic-bezier(.25, 1, .5, 1); }
.anniversary-hero-slide.is-active { opacity: 1; }
.anniversary-hero-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.anniversary-hero-shade {
  pointer-events: none;
  background:
    radial-gradient(ellipse 64% 65% at 51% 47%, rgba(37, 20, 10, .62) 0%, rgba(37, 20, 10, .32) 46%, transparent 82%),
    radial-gradient(ellipse 82% 94% at -12% 104%, rgba(255, 174, 43, .76) 0%, rgba(230, 100, 19, .38) 43%, transparent 77%),
    radial-gradient(ellipse 72% 83% at 110% -8%, rgba(255, 124, 33, .66) 0%, rgba(225, 94, 22, .23) 48%, transparent 81%),
    radial-gradient(ellipse 43% 57% at 10% 3%, rgba(255, 222, 113, .32) 0%, transparent 78%),
    rgba(33, 21, 14, .4);
}
.anniversary-hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/anniversary/grain.svg") repeat;
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  opacity: .16;
}
.anniversary-hero-copy {
  position: absolute;
  inset: var(--anniversary-inset-top, 0px) var(--anniversary-inset-x, 0px) var(--anniversary-inset-bottom, 0px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px clamp(96px, 10vh, 144px);
  text-align: center;
  color: #fffaf5;
}
.anniversary-body .anniversary-hero-years {
  margin: 18px 0 0;
  color: #ffb274;
  font-size: clamp(17px, 1.6vw, 23px);
  letter-spacing: .12em;
  font-weight: 500;
}
.anniversary-body .anniversary-hero-copy h1 {
  margin: 0;
  color: #fffaf5;
  font-size: clamp(48px, 6.4vw, 88px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}
.anniversary-hero-signature {
  display: block;
  font-size: clamp(17px, 1.6vw, 23px);
  width: 8em;
  max-width: 100%;
  aspect-ratio: 2459 / 500;
  margin-bottom: 18px;
  background: linear-gradient(105deg, #ff923d 0%, #ffbd5a 48%, #ffe5a1 100%);
  -webkit-mask: url("./assets/anniversary/selected/handwritten-title.png") center / contain no-repeat;
  mask: url("./assets/anniversary/selected/handwritten-title.png") center / contain no-repeat;
  flex-shrink: 0;
}
.anniversary-hero-bottom {
  position: absolute;
  bottom: calc(var(--anniversary-inset-bottom, 0px) + 28px);
  left: calc(var(--anniversary-inset-x, 0px) + 28px);
  right: calc(var(--anniversary-inset-x, 0px) + 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fffaf5;
}
.anniversary-hero-controls,
.anniversary-hero-dots { display: flex; align-items: center; }
.anniversary-hero-controls { gap: 22px; margin-left: auto; }
.anniversary-hero-dots button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.anniversary-hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: #b2aaa2; transition: background .2s; }
.anniversary-hero-dots button[aria-pressed="true"] span { background: #ff873b; }
.anniversary-hero-controls button:focus-visible { outline: 2px solid #ffb274; outline-offset: 4px; }
@media (max-width: 1068px) {
  .anniversary-hero { height: var(--anniversary-height); }
  .anniversary-hero-sticky { position: relative; top: 0; }
  .anniversary-hero-frame { clip-path: none !important; }
}
@media (max-width: 760px) {
  .anniversary-hero-bottom { gap: 12px; }
  .anniversary-hero-controls { gap: 10px; margin-inline: auto; }
  .anniversary-hero-bottom {
    bottom: calc(var(--anniversary-inset-bottom, 0px) + 14px);
    left: calc(var(--anniversary-inset-x, 0px) + 16px);
    right: calc(var(--anniversary-inset-x, 0px) + 16px);
  }
  .anniversary-body .anniversary-hero-copy h1 { font-size: clamp(36px, 8vw, 48px); }
  .anniversary-body .anniversary-hero-years { font-size: 14px; margin: 12px 0 0; }
  .anniversary-hero-signature { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .anniversary-hero { height: var(--anniversary-height); }
  .anniversary-hero-sticky { position: relative; top: 0; }
  .anniversary-hero-slide, .anniversary-hero-dots span { transition: none; }
  .anniversary-hero-frame { clip-path: none !important; }
  .anniversary-hero-slides { transform: none; }
}
