/* ─── HERO SLIDER ────────────────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg);
}

/* ─── TRACK & SLIDES ─────────────────────────────────────────────────────── */
.slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s cubic-bezier(.25,.46,.45,.94);
  pointer-events: none;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.slide.is-entering {
  opacity: 0;
  animation: slide-enter .8s cubic-bezier(.25,.46,.45,.94) forwards;
}

@keyframes slide-enter {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── BACKGROUND ─────────────────────────────────────────────────────────── */
.slide__bg {
  position: absolute;
  inset: 0;
}

.slide__bg-color {
  position: absolute;
  inset: 0;
}

.slide__bg-img {
  width: 100%; height: 100%; object-fit: var(--slide-bg-fit, cover);
  object-position: var(--slide-bg-position, 50% 50%);
  transform-origin: center;
  animation: ken-burns 8s ease-in-out infinite alternate;
}

@keyframes ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

.slide__video {
  width: 100%; height: 100%; object-fit: cover;
}

.slide__overlay {
  position: absolute; inset: 0;
  background: rgba(26,24,20, var(--overlay-opacity, 0.3));
}

.slide__watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  max-width: 280px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  object-fit: contain;
}

.slide__layer {
  position: absolute;
}

.slide__layer--anchor-top-left { left: 6%; top: 10%; }
.slide__layer--anchor-top-center { left: 50%; top: 10%; transform: translateX(-50%); }
.slide__layer--anchor-top-right { right: 6%; top: 10%; }
.slide__layer--anchor-middle-left { left: 6%; top: 50%; transform: translateY(-50%); }
.slide__layer--anchor-center { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.slide__layer--anchor-middle-right { right: 6%; top: 50%; transform: translateY(-50%); }
.slide__layer--anchor-bottom-left { left: 6%; bottom: 10%; }
.slide__layer--anchor-bottom-center { left: 50%; bottom: 10%; transform: translateX(-50%); }
.slide__layer--anchor-bottom-right { right: 6%; bottom: 10%; }
.slide__layer--free { transform: translate(-50%, -50%); }
.slide__layer--logo.slide__layer--free { left: var(--slide-logo-x, 50%); top: var(--slide-logo-y, 50%); }

.slide__layer--logo {
  z-index: 31;
}

.slide__layer--cta {
  z-index: 32;
}

/* ─── PHOTO COMPOSITION ──────────────────────────────────────────────────── */
.slide__photos {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  height: 70%;
  pointer-events: none;
}

.slide__photos--anchor-top-left { left: 8%; top: 10%; right: auto; transform: none; }
.slide__photos--anchor-top-center { left: 50%; top: 10%; right: auto; transform: translateX(-50%); }
.slide__photos--anchor-top-right { right: 8%; top: 10%; transform: none; }
.slide__photos--anchor-middle-left { left: 8%; top: 50%; right: auto; transform: translateY(-50%); }
.slide__photos--anchor-center { left: 50%; top: 50%; right: auto; transform: translate(-50%, -50%); }
.slide__photos--anchor-middle-right { right: 8%; top: 50%; transform: translateY(-50%); }
.slide__photos--anchor-bottom-left { left: 8%; bottom: 10%; top: auto; right: auto; transform: none; }
.slide__photos--anchor-bottom-center { left: 50%; bottom: 10%; top: auto; right: auto; transform: translateX(-50%); }
.slide__photos--anchor-bottom-right { right: 8%; bottom: 10%; top: auto; transform: none; }
.slide__photos--free { right: auto; bottom: auto; transform: translate(-50%, -50%); }

.slide__photos--landscape { width: 52%; height: 62%; }
.slide__photos--portrait { width: 40%; height: 82%; }
.slide__photos--square { width: min(38vw, 520px); height: min(38vw, 520px); }

.slide__photo {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,24,20,.35);
}

.slide__photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.slide__photo--1 {
  width: calc(82% * var(--slide-photo-1-scale, var(--slide-photo-scale, 1)));
  aspect-ratio: 3 / 2;
  top: var(--slide-photo-1-y, 0);
  left: var(--slide-photo-1-x, auto);
  right: 0;
  border: 6px solid #fff;
  animation: photo-float-1 6s ease-in-out infinite alternate;
}

.slide__photo--2 {
  width: calc(64% * var(--slide-photo-2-scale, var(--slide-photo-scale, 1)));
  aspect-ratio: 2 / 3;
  bottom: 0;
  top: var(--slide-photo-2-y, auto);
  left: var(--slide-photo-2-x, 0);
  border: 6px solid #fff;
  animation: photo-float-2 6s ease-in-out infinite alternate;
  animation-delay: -.5s;
}

.slide__photo--format-landscape {
  width: calc(92% * var(--slide-photo-1-scale, var(--slide-photo-scale, 1)));
  aspect-ratio: 3 / 2;
}

.slide__photo--format-portrait {
  width: calc(56% * var(--slide-photo-2-scale, var(--slide-photo-scale, 1)));
  aspect-ratio: 2 / 3;
}

.slide__photo--format-square {
  width: calc(66% * var(--slide-photo-1-scale, var(--slide-photo-scale, 1)));
  aspect-ratio: 1 / 1;
}

@keyframes photo-float-1 {
  from { transform: translateY(0px); }
  to   { transform: translateY(-8px); }
}
@keyframes photo-float-2 {
  from { transform: translateY(0px); }
  to   { transform: translateY(8px); }
}

/* ─── CONTENT ────────────────────────────────────────────────────────────── */
.slide__content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 6% 10%;
  width: var(--slide-content-width, min(52%, 760px));
  color: #fff;
}

.slide__content--center {
  left: 50%; transform: translateX(-50%);
  text-align: center;
  width: 70%;
}

.slide__content--right {
  left: auto; right: 0;
  text-align: right;
}

.slide__logo {
  display: block;
  width: var(--slide-logo-width, clamp(82px, 11vw, 150px));
  max-width: 60vw;
  max-height: 24vh;
  object-fit: contain;
  margin: 0 0 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
}

.slide__logo--floating {
  margin: 0;
}

.slide__content--center .slide__logo,
.slide__content--anchor-top-center .slide__logo,
.slide__content--anchor-center .slide__logo,
.slide__content--anchor-bottom-center .slide__logo {
  margin-left: auto;
  margin-right: auto;
}

.slide__content--right .slide__logo,
.slide__content--anchor-top-right .slide__logo,
.slide__content--anchor-middle-right .slide__logo,
.slide__content--anchor-bottom-right .slide__logo {
  margin-left: auto;
}

.slide__subtitle {
  font-family: var(--font-sans);
  font-size: var(--slide-subtitle-size, 14px);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: none;
  color: var(--slide-subtitle-color, rgba(46,46,46,.8));
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease .1s, transform .7s ease .1s;
}

.slide__title {
  font-family: var(--slide-title-font, var(--font-serif));
  font-size: var(--slide-title-size, clamp(2.5rem, 5vw, 4.25rem));
  font-weight: var(--slide-title-weight, 600);
  line-height: var(--slide-title-line-height, 1.15);
  letter-spacing: var(--slide-title-letter-spacing, 0);
  color: var(--slide-title-color, #fff);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s ease .25s, transform .75s ease .25s;
}

.slide__content--anchor-top-left { top: 10%; bottom: auto; left: 1%; width: min(48vw, 760px); transform: none; }
.slide__content--anchor-top-center { top: 10%; bottom: auto; left: 50%; transform: translateX(-50%); text-align: center; }
.slide__content--anchor-top-right { top: 10%; bottom: auto; left: auto; right: 6%; text-align: right; transform: none; }
.slide__content--anchor-middle-left { top: 50%; bottom: auto; left: 1%; width: min(48vw, 760px); transform: translateY(-50%); }
.slide__content--anchor-center { top: 50%; bottom: auto; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.slide__content--anchor-middle-right { top: 50%; bottom: auto; left: auto; right: 6%; transform: translateY(-50%); text-align: right; }
.slide__content--anchor-bottom-left { bottom: 10%; left: 1%; width: min(48vw, 760px); transform: none; }
.slide__content--anchor-bottom-center { bottom: 10%; left: 50%; transform: translateX(-50%); text-align: center; }
.slide__content--anchor-bottom-right { bottom: 10%; left: auto; right: 6%; transform: none; text-align: right; }
.slide__content--free {
  left: var(--slide-content-x, 0%);
  top: var(--slide-content-y, 0%);
  right: auto;
  bottom: auto;
  width: var(--slide-content-width, min(62vw, 980px));
  transform: none;
}

.slide__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 260px;
  min-height: 70px;
  padding: 0 34px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: none;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--slide-cta-color, var(--color-text));
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease .4s, transform .7s ease .4s, color .25s ease, background .25s ease, border-color .25s ease;
}
.slide__cta:hover {
  color: var(--color-text);
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.slide__cta--floating {
  opacity: 1;
  transform: none;
}

.slide__cta-line {
  display: block;
  width: 36px; height: 1px;
  background: currentColor;
  opacity: .72;
  transition: width .35s cubic-bezier(.25,.46,.45,.94);
}
.slide__cta:hover .slide__cta-line { width: 50px; opacity: 1; }

.slide__content--shadow .slide__subtitle,
.slide__content--shadow .slide__title,
.slide__content--shadow .slide__cta {
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}

/* Animate in when slide is active */
.slide.is-active .slide__logo,
.slide.is-active .slide__subtitle,
.slide.is-active .slide__title,
.slide.is-active .slide__cta {
  opacity: 1;
  transform: none;
}

.slider-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 12;
  transform: translateX(-50%);
  color: var(--scroll-cue-color, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-scroll-cue__desktop,
.slider-scroll-cue__mobile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-scroll-cue__desktop {
  flex-direction: column;
  gap: calc(var(--scroll-cue-size, 34px) * .10);
}

.slider-scroll-cue__arrow {
  width: calc(var(--scroll-cue-size, 34px) * .52);
  height: calc(var(--scroll-cue-size, 34px) * .52);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .9;
}

.slider-scroll-cue__arrow:first-child {
  animation: scroll-arrow-1 1.6s ease-in-out infinite;
}

.slider-scroll-cue__arrow:last-child {
  margin-top: calc(var(--scroll-cue-size, 34px) * -.18);
  animation: scroll-arrow-2 1.6s ease-in-out infinite;
}

.slider-scroll-cue__mobile {
  width: var(--scroll-cue-size, 34px);
  height: calc(var(--scroll-cue-size, 34px) * 1.6);
  border: 1px solid currentColor;
  border-radius: 999px;
  align-items: flex-end;
  padding-bottom: calc(var(--scroll-cue-size, 34px) * .28);
}

.slider-scroll-cue__dot {
  width: calc(var(--scroll-cue-size, 34px) * .15);
  height: calc(var(--scroll-cue-size, 34px) * .15);
  border-radius: 50%;
  background: currentColor;
  animation: scroll-cue-mobile 1.6s ease-in-out infinite;
}

@keyframes scroll-arrow-1 {
  0%, 100% { transform: rotate(45deg) translate(-2px, -2px); opacity: .28; }
  50% { transform: rotate(45deg) translate(2px, 2px); opacity: 1; }
}

@keyframes scroll-arrow-2 {
  0%, 100% { transform: rotate(45deg) translate(-5px, -5px); opacity: .18; }
  50% { transform: rotate(45deg) translate(1px, 1px); opacity: .92; }
}

@keyframes scroll-cue-mobile {
  0% { transform: translateY(0); opacity: .2; }
  45% { opacity: 1; }
  100% { transform: translateY(-22px); opacity: .1; }
}

@media (min-width: 981px) {
  .slider-scroll-cue__mobile {
    display: none;
  }
}

@media (max-width: 980px) {
  .slider-scroll-cue__desktop {
    display: none;
  }
}

.home-sections-anchor {
  position: relative;
  top: -1px;
  height: 0;
}

/* ─── CONTROLS ───────────────────────────────────────────────────────────── */
.slider__controls {
  position: absolute;
  bottom: 36px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.slider__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.25);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.slider__btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
}

.slider__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: background .3s ease, transform .3s ease;
}
.slider__dot.is-active {
  background: #fff;
  transform: scale(1.35);
}
