.rue-homepage {
  --rue-bg: #f3f2ef;
  --rue-surface: #fffdf8;
  --rue-surface-strong: #ffffff;
  --rue-ink: #14171f;
  --rue-muted: #5b6271;
  --rue-gold: #c7a46a;
  --rue-gold-deep: #8c6b3d;
  --rue-dark: #0d1117;
  --rue-line: rgba(20, 23, 31, 0.12);
  --rue-shadow: 0 22px 60px rgba(18, 20, 27, 0.12);
  background: #f3f2ef;
  color: var(--rue-ink);
}

.rue-homepage {
  font-size: 16px;
}

.rue-home-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rue-homepage h1,
.rue-homepage h2,
.rue-homepage h3 {
  font-family: 'Alice', 'Times New Roman', serif;
}

.rue-home-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
}

.rue-home-section {
  position: relative;
  padding: 88px 0;
}

.rue-home-section--lifted {
  margin-top: 0;
  z-index: 2;
  padding-top: 108px;
}

.rue-home-section--soft {
  background: rgba(255, 255, 255, 0.36);
}

.rue-home-section--partners {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.56) 100%),
    linear-gradient(180deg, #f2ebde 0%, #ebe3d3 100%);
}

.rue-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(199, 164, 106, 0.14);
  color: #f2d8aa;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rue-home-hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 120px 0 112px;
  color: #f7f4ef;
}

.rue-home-hero__media,
.rue-home-hero__overlay,
.rue-home-hero__grid {
  position: absolute;
  inset: 0;
}

.rue-home-hero__media {
  overflow: hidden;
}

.rue-home-hero__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  object-fit: cover;
}

.rue-home-hero__overlay {
  background:
    linear-gradient(180deg, rgba(35, 31, 26, 0.14) 0%, rgba(17, 19, 24, 0.18) 45%, rgba(17, 19, 24, 0.28) 100%),
    linear-gradient(90deg, rgba(191, 161, 97, 0.1) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.08) 100%);
}

.rue-home-hero__grid {
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
}

.rue-home-hero__content {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.28);
}

.rue-home-hero__actions {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.rue-home-hero__note {
  margin-top: 24px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(247, 244, 239, 0.88);
  text-align: center;
}

.rue-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  min-width: 250px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none !important;
  font-size: clamp(0.98rem, 1.75vw, 1.18rem);
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.rue-home-btn:hover {
  transform: translateY(-2px);
}

.rue-home-btn:focus-visible,
a.rue-home-service-card:focus-visible,
.rue-home-partner-card:focus-visible,
.rue-home-partners-nav:focus-visible,
.rue-home-partners-dot:focus-visible {
  outline: 3px solid rgba(199, 164, 106, 0.82);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(199, 164, 106, 0.2);
}

.rue-home-btn--primary {
  background: linear-gradient(135deg, #f2cb8d 0%, #c7a46a 100%);
  color: #111827 !important;
  box-shadow: 0 16px 28px rgba(199, 164, 106, 0.25);
}

.rue-home-btn--primary:hover {
  background: linear-gradient(135deg, #f5d69d 0%, #d2ad71 100%);
  box-shadow: 0 18px 34px rgba(199, 164, 106, 0.34);
}

.rue-home-btn--ghost,
.rue-home-btn--ghost-dark {
  background: transparent;
  border-color: rgba(199, 164, 106, 0.46);
}

.rue-home-btn--ghost {
  color: #f8f6f0 !important;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(17, 24, 39, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 26px rgba(0,0,0,0.16);
  backdrop-filter: blur(8px);
}

.rue-home-btn--ghost:hover {
  background: rgba(17, 24, 39, 0.52);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 14px 30px rgba(0,0,0,0.24);
}

.rue-home-btn--ghost-dark {
  color: var(--rue-ink) !important;
  border-color: rgba(20, 23, 31, 0.18);
}

.rue-home-btn--ghost-dark:hover {
  background: rgba(20, 23, 31, 0.04);
}

.rue-home-about {
  padding: 8px 0 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.rue-home-about-variant {
  position: relative;
  padding: 30px 30px 26px;
}

.rue-home-about-variant--selected {
  background: transparent;
}

.rue-home-about__title-block {
  margin-bottom: 24px;
}

.rue-home-about__lead-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 0;
  align-items: start;
  margin-bottom: 38px;
  padding: 18px 24px 22px;
  justify-content: initial;
  position: relative;
}

.rue-home-about__lead {
  padding: 0 18px 0 0;
  width: 100%;
  max-width: 1120px;
}

.rue-home-about__lead-wrap::before,
.rue-home-about__lead-wrap::after {
  content: '';
  position: absolute;
  width: 54px;
  height: 54px;
  pointer-events: none;
}

.rue-home-about__lead-wrap::before {
  top: 0;
  left: 0;
  border-top: 2px solid rgba(199, 164, 106, 0.42);
  border-left: 2px solid rgba(199, 164, 106, 0.42);
}

.rue-home-about__lead-wrap::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid rgba(199, 164, 106, 0.42);
  border-bottom: 2px solid rgba(199, 164, 106, 0.42);
}

.rue-home-about__brandmark {
  width: 190px;
  min-height: 144px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border-radius: 0;
  background: transparent;
  padding-top: 6px;
}

.rue-home-about__intro h2,
.rue-home-section-head h2,
.rue-home-split-card__copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.rue-home-about__logo {
  max-width: 150px;
  width: min(100%, 150px);
  height: auto;
}

.rue-home-about__lead {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #2a3140;
  max-width: none;
}

.rue-home-about__lead p:last-child {
  margin-bottom: 0;
}

.rue-home-about__video-head {
  margin-bottom: 22px;
}

.rue-home-about__after-video {
  margin: 0;
  color: var(--rue-muted);
  max-width: none;
  text-align: center;
}

.rue-home-about__after-video-wrap {
  max-width: 1120px;
  margin: 34px auto 0;
}

.rue-home-richtext,
.rue-home-richtext p {
  color: var(--rue-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.rue-home-section-head {
  margin-bottom: 28px;
  max-width: 780px;
}

.rue-home-section-head--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.rue-home-section-head p {
  margin: 14px 0 0;
  color: var(--rue-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.rue-home-section-head--with-action {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  max-width: none;
}

.rue-home-video-card {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(20, 23, 31, 0.08);
  box-shadow: var(--rue-shadow);
}

.rue-home-video-frame {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(20,23,31,0.18);
}

.rue-home-video-frame iframe,
.rue-home-video-frame video,
.rue-home-video-frame embed {
  display: block;
  width: 100%;
  min-height: 100%;
  aspect-ratio: 16/9;
}

.rue-home-services-grid,
.rue-home-values-grid,
.rue-home-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rue-home-services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rue-home-service-card,
.rue-home-value-card,
.rue-home-post-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(20, 23, 31, 0.08);
  box-shadow: 0 18px 42px rgba(20,23,31,0.08);
}

.rue-home-service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
  background: linear-gradient(165deg, #0f1624 0%, #18243a 100%);
  color: #f5efe4;
  border: 1px solid rgba(199, 164, 106, 0.26);
  box-shadow: 0 22px 40px rgba(11, 16, 27, 0.22);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.rue-home-service-card {
  cursor: pointer;
}

a.rue-home-service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(199, 164, 106, 0.48);
  box-shadow: 0 28px 48px rgba(11, 16, 27, 0.28);
}

.rue-home-service-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(199, 164, 106, 0.14);
  border: 1px solid rgba(199, 164, 106, 0.34);
  color: #d8b474;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.rue-home-service-card h3,
.rue-home-value-card h3,
.rue-home-post-card h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  line-height: 1.05;
}

.rue-home-service-card h3 {
  color: #d8b474;
}

.rue-homepage .rue-home-service-card,
.rue-homepage .rue-home-service-card * {
  color: rgba(245, 239, 228, 0.92) !important;
}

.rue-homepage .rue-home-service-card h3,
.rue-homepage .rue-home-service-card .rue-home-service-card__icon {
  color: #d8b474 !important;
}

.rue-home-service-card p,
.rue-home-value-card p,
.rue-home-post-card p {
  margin: 0;
  line-height: 1.75;
}

.rue-home-service-card__description {
  color: rgba(245, 239, 228, 0.9) !important;
  line-height: 1.65;
  font-size: 1.08rem;
  margin-bottom: 20px;
}

.rue-homepage .rue-home-service-card__description,
.rue-homepage .rue-home-service-card__description * {
  color: rgba(245, 239, 228, 0.9) !important;
}

.rue-home-value-card {
  padding: 20px;
}

.rue-home-value-card h3 {
  color: var(--rue-gold-deep);
}

.rue-home-value-card p {
  color: var(--rue-muted);
}

.rue-home-post-card__thumb {
  display: block;
  aspect-ratio: 1.18/1;
  overflow: hidden;
  background: linear-gradient(135deg, #1a202c, #354154);
}

.rue-home-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rue-home-post-card:hover .rue-home-post-card__thumb img {
  transform: scale(1.04);
}

.rue-home-post-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255,255,255,0.76);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.rue-home-post-card__body {
  padding: 22px;
}

.rue-home-post-card__meta {
  margin-bottom: 10px;
  color: var(--rue-gold-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rue-home-post-card h3 a {
  color: var(--rue-ink);
  text-decoration: none;
}

.rue-home-post-card p {
  color: var(--rue-muted);
}

.rue-home-partners-carousel {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
}

.rue-home-partners-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px;
}

.rue-home-partners-track::-webkit-scrollbar {
  display: none;
}

.rue-home-partner-card {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 20px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(20, 23, 31, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  scroll-snap-align: start;
}

.rue-home-partner-card img {
  max-width: 92%;
  height: 150px;
  max-height: 150px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.rue-home-partners-nav {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: #2f3b50;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rue-home-partners-nav:hover {
  transform: translateY(-1px);
  background: #223148;
}

.rue-home-partner-card:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 164, 106, 0.5);
  background: rgba(255,255,255,0.92);
}

.rue-home-partner-card:hover img {
  filter: none;
  transform: scale(1.02);
}

.rue-home-partners-toggle {
  display: flex;
  justify-content: center;
}

.rue-home-partners-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.rue-home-partners-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(47, 59, 80, 0.26);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rue-home-partners-dot.is-active {
  background: #2f3b50;
  transform: scale(1.15);
}

.rue-home-partners-note {
  margin-top: 24px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--rue-muted);
}

.rue-home-partners-note p,
.rue-home-partners-note strong {
  color: var(--rue-muted);
}

@media (max-width: 1120px) {
  .rue-home-services-grid,
  .rue-home-values-grid,
  .rue-home-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rue-home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rue-home-about {
    padding: 28px;
  }

  .rue-home-about-variant {
    padding: 24px 22px 20px;
  }

  .rue-home-about__brandmark {
    width: min(100%, 190px);
    margin: 0 auto 20px;
  }

  .rue-home-about__lead-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-content: initial;
    padding: 18px 14px 20px;
  }

  .rue-home-about__lead {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .rue-home-shell {
    width: min(100%, calc(100% - 24px));
  }

  .rue-home-hero {
    min-height: auto;
    padding: 110px 0 64px;
  }

  .rue-home-hero__content,
  .rue-home-about,
  .rue-home-video-card {
    padding: 22px;
    border-radius: 24px;
  }

  .rue-home-about__header {
    padding-bottom: 22px;
    margin-bottom: 20px;
  }

  .rue-home-about__lead-wrap {
    min-height: 0;
    margin-bottom: 28px;
    padding: 16px 6px 18px;
  }

  .rue-home-hero__content {
    padding: 0 12px;
  }

  .rue-home-section {
    padding: 66px 0;
  }

  .rue-home-section--lifted {
    margin-top: 0;
    padding-top: 82px;
  }

  .rue-home-section-head--with-action {
    flex-direction: column;
    align-items: flex-start;
  }

  .rue-home-services-grid,
  .rue-home-values-grid,
  .rue-home-blog-grid {
    grid-template-columns: 1fr;
  }

  .rue-home-partners-carousel {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rue-home-partners-toggle {
    justify-content: flex-end;
  }

  .rue-home-partners-nav {
    width: 48px;
    height: 48px;
  }

  .rue-home-partners-track {
    grid-auto-columns: minmax(240px, 82vw);
  }

  .rue-home-hero__actions {
    gap: 12px;
  }

  .rue-home-btn {
    min-width: min(100%, 280px);
    width: min(100%, 280px);
    min-height: 56px;
    padding: 0 22px;
  }

  .rue-home-partner-card img {
    max-height: 150px;
  }
}
