/*!
 * Osso Hero · (C) 2026 Osso City Lighting · GPL-2.0-or-later
 */
.osso-hero {
  --_ease: var(--osso-ease, cubic-bezier(.22, .61, .36, 1));
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--osso-dark, #141c24);
  color: #fff;
}

.osso-hero--tall { min-height: 82vh; min-height: 82svh; }
.osso-hero--medium { min-height: 60vh; min-height: 60svh; }
.osso-hero--no-image { background: var(--osso-primary, #2a5379); }

/* Slides */
.osso-hero__media,
.osso-hero__shade {
  position: absolute;
  inset: 0;
}

.osso-hero__media { z-index: -2; }

.osso-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--_ease);
}

.osso-hero__slide.is-active { opacity: 1; z-index: 1; }
.osso-hero__slide.is-leaving { opacity: 0; z-index: 0; }

.osso-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
}

.osso-hero--kenburns .osso-hero__slide img { transform: scale(1.02); }
.osso-hero--kenburns .osso-hero__slide.is-active img,
.osso-hero--kenburns .osso-hero__slide.is-leaving img {
  animation: osso-kenburns calc(var(--osso-hero-interval, 6000ms) + 1600ms) linear both;
}

@keyframes osso-kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

/* Shade for legibility */
.osso-hero__shade { z-index: -1; }

.osso-hero--overlay-light .osso-hero__shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .1) 40%, rgba(0, 0, 0, .3) 100%);
}

.osso-hero--overlay-medium .osso-hero__shade {
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .12) 65%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .12) 35%, rgba(0, 0, 0, .45) 100%);
}

.osso-hero--overlay-strong .osso-hero__shade {
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, .6) 100%);
}

.osso-hero--align-left.osso-hero--overlay-medium .osso-hero__shade,
.osso-hero--align-bottom-left.osso-hero--overlay-medium .osso-hero__shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .35) 100%);
}

/* Content */
.osso-hero__content {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: calc(var(--osso-header-h, 84px) + 3rem) var(--osso-gutter, 1.5rem) 7rem;
  text-align: center;
}

.osso-hero--align-left .osso-hero__content,
.osso-hero--align-bottom-left .osso-hero__content {
  justify-items: start;
  text-align: left;
  max-width: calc(1440px + 2 * var(--osso-gutter, 1.5rem));
  width: 100%;
  margin-inline: auto;
}

.osso-hero--align-bottom-left .osso-hero__content { align-items: end; }

.osso-hero__inner {
  max-width: 900px;
  animation: osso-hero-in 1.4s var(--_ease) .15s both;
}

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

.osso-hero__logo {
  display: block;
  width: min(360px, 70vw);
  height: auto;
  margin: 0 auto 2rem;
}

.osso-hero--align-left .osso-hero__logo,
.osso-hero--align-bottom-left .osso-hero__logo { margin-left: 0; }

.osso-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem !important;
  font-family: var(--osso-font-body, sans-serif);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}

.osso-hero__eyebrow::before,
.osso-hero__eyebrow::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--osso-accent, #b08d57);
}

.osso-hero--align-left .osso-hero__eyebrow::after,
.osso-hero--align-bottom-left .osso-hero__eyebrow::after { display: none; }

.osso .osso-hero__title,
.osso-hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--osso-font-heading, Georgia, serif);
  font-size: calc(clamp(2.7rem, 7vw, 6rem) * var(--osso-heading-scale, 1));
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}

.osso-hero__sub {
  max-width: 44ch;
  margin: 0 auto 2.25rem !important;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}

.osso-hero--align-left .osso-hero__sub,
.osso-hero--align-bottom-left .osso-hero__sub { margin-left: 0 !important; }

.osso-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: .5rem;
}

.osso-hero--align-left .osso-hero__actions,
.osso-hero--align-bottom-left .osso-hero__actions { justify-content: flex-start; }

/* Scroll cue & controls */
.osso-hero__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 var(--osso-gutter, 1.5rem) 1.75rem;
  pointer-events: none;
}

.osso-hero__footer > * { pointer-events: auto; }

.osso-hero__cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  color: rgba(255, 255, 255, .85) !important;
  text-decoration: none;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.osso-hero__cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}

.osso-hero__cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: #fff;
  animation: osso-cue 2.2s var(--_ease) infinite;
}

@keyframes osso-cue {
  to { top: 100%; }
}

.osso-hero__controls {
  position: absolute;
  right: var(--osso-gutter, 1.5rem);
  bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.osso-hero__progress { display: flex; gap: .35rem; }

.osso-hero__progress i {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, .35);
  transition: background-color .4s, width .4s var(--_ease);
}

.osso-hero__progress i.is-active { width: 34px; background: #fff; }

.osso-hero__pause {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .25s, border-color .25s;
}

.osso-hero__pause:hover { background: rgba(255, 255, 255, .15); border-color: #fff; }
.osso-hero__icon-play { display: none; }
.osso-hero__pause[aria-pressed="true"] .osso-hero__icon-play { display: block; }
.osso-hero__pause[aria-pressed="true"] .osso-hero__icon-pause { display: none; }

@media (max-width: 767.98px) {
  .osso-hero__progress { display: none; }
  .osso-hero__controls { bottom: 1.25rem; }
  .osso-hero__cue span { display: none; }
}

.osso-hero-end { display: block; height: 0; }

@media (prefers-reduced-motion: reduce) {
  .osso-hero__slide img { animation: none !important; transform: none !important; }
  .osso-hero__inner { animation: none; }
  .osso-hero__cue i::after { animation: none; top: 30%; }
}
