/* Stage 2 hero — standalone styles, loaded on the front page only. */
.ryan-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #111;
  direction: rtl;
  font-family: var(--ryan-font, 'Alexandria', sans-serif);
}
.ryan-hero *,
.ryan-hero *::before,
.ryan-hero *::after { box-sizing: border-box; }
.ryan-hero__slides,
.ryan-hero__slide,
.ryan-hero__media,
.ryan-hero__overlay { position: absolute; inset: 0; }
.ryan-hero__slides { overflow: hidden; }
.ryan-hero__picture { position: absolute; inset: 0; display: block; }
.ryan-hero__slide {
  z-index: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1s ease, visibility 1s ease;
}
.ryan-hero__slide.is-active { z-index: 2; visibility: visible; opacity: 1; }
.ryan-hero__media { overflow: hidden; }
.ryan-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.12);
  transition: transform 8s linear;
}
.ryan-hero__slide.is-active .ryan-hero__image { transform: scale(1); }
.ryan-hero__overlay {
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 10, 10, .8) 0%, rgba(10, 10, 10, .55) 45%, rgba(10, 10, 10, .15) 100%);
}
.ryan-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  margin-inline: auto;
  padding: 0 8%;
  text-align: right;
}
.ryan-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(30px);
}
.ryan-hero__eyebrow-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a15b;
}
.ryan-hero__title {
  max-width: 760px;
  margin: 25px 0;
  color: #fff;
  font-family: inherit;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  text-align: right;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .35), 0 8px 30px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(40px);
}
.ryan-hero__title[data-lines="1"] { min-height: 1.1em; }
.ryan-hero__title[data-lines="2"] { min-height: 2.2em; }
.ryan-hero__title-visual { white-space: pre-line; }
.ryan-hero__description {
  max-width: 620px;
  margin: 0 0 18px;
  color: #d8d8d8;
  font-size: 18px;
  font-weight: 400;
  line-height: 2;
  text-align: right;
  opacity: 0;
  transform: translateY(40px);
}
.ryan-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 45px;
  opacity: 0;
  transform: translateY(40px);
}
.ryan-hero__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px 42px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 60px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 22.4px;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .4s ease, border-color .4s ease, color .4s ease, transform .4s ease, box-shadow .4s ease;
}
.ryan-hero__button::before {
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  content: "";
  transform: skewX(-25deg);
  transition: left .6s ease;
}
.ryan-hero__button:hover,
.ryan-hero__button:focus-visible {
  border-color: #7a2c40;
  background: linear-gradient(135deg, #5c1f2e, #7a2c40);
  color: #fff;
  box-shadow: 0 18px 45px rgba(92, 31, 46, .45);
  transform: translateY(-5px) scale(1.03);
}
.ryan-hero__button:hover::before,
.ryan-hero__button:focus-visible::before { left: 140%; }
.ryan-hero__services-link {
  display: inline-flex;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #5c1f2e;
  cursor: pointer;
  transition: transform .45s ease, color .45s ease;
}
.ryan-hero__services-link svg { display: block; width: 18px; height: 18px; }
.ryan-hero__services-link:hover { transform: translateX(-3px); }
.ryan-hero__services-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.ryan-hero__nav {
    position: absolute;
    z-index: 4;
    bottom: 38px;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
}
.ryan-hero__dots { display: flex; align-items: center; gap: 0; margin: 45px; }
.ryan-hero__dot {
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.ryan-hero__dot::before {
  width: 11px;
  height: 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .35);
  content: "";
  transition: width .4s ease, background-color .4s ease;
}
.ryan-hero__dot.is-active::before { width: 34px; background: #c89a52; }
.ryan-hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.ryan-hero__slide.is-active .ryan-hero__eyebrow { animation: ryanHeroFadeUp .8s .3s forwards; }
.ryan-hero__slide.is-active .ryan-hero__title { animation: ryanHeroFadeUp 1s .8s forwards; }
.ryan-hero__slide.is-active .ryan-hero__description { animation: ryanHeroFadeUp 1s 1.2s forwards; }
.ryan-hero__slide.is-active .ryan-hero__buttons { animation: ryanHeroFadeUp 1s 1.6s forwards; }
@keyframes ryanHeroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 992px) {
  .ryan-hero__description { font-size: 16px; }
  .ryan-hero__content { padding-inline: 40px; }
}
@media (max-width: 768px) {
  .ryan-hero__slide[data-hero-initial].is-active { visibility: visible; opacity: 1; transition: none; }
  .ryan-hero__slide[data-hero-initial].is-active .ryan-hero__image { transform: scale(1); transition: none; }
  .ryan-hero__content { align-items: center; padding-inline: 25px; text-align: center; }
  .ryan-hero__eyebrow { font-size: 12px; }
  .ryan-hero__title { font-size: 38px; text-align: center; }
  .ryan-hero__description { font-size: 15px; line-height: 1.8; text-align: center; }
  .ryan-hero__buttons { justify-content: center; width: 100%; }
  .ryan-hero__button { width: 100%; }
  .ryan-hero__services-link { display: none; }
  .ryan-hero__nav { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ryan-hero *,
  .ryan-hero *::before,
  .ryan-hero *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
