/**
 * Homepage Design Families V2 — presentation / studio layouts (non-card-heavy).
 * Scoped under .home-pres; pairs with body.theme-pack--* and theme-composition hooks.
 */

.home-pres {
  --home-pres-gap: clamp(2.5rem, 5vw, 4.5rem);
  --home-pres-pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --home-pres-band-bg: var(--rj-surface-elevated, #f6f7f9);
  --home-pres-dark: #14181f;
  --home-pres-dark-text: #f4f5f7;
  --home-pres-accent: var(--rj-accent, #2a5ea8);
}

.site-home--presentation .site-section {
  margin-bottom: 0;
}

.home-pres__section {
  padding: var(--home-pres-gap) var(--home-pres-pad-x);
}

.home-pres__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.home-pres__section-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
}

.home-pres__link-cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Dark hero */
.home-pres__dark-hero {
  padding: 0;
  background: var(--home-pres-dark);
  color: var(--home-pres-dark-text);
}

.home-pres__dark-hero--fullbleed .home-pres__dark-hero-media {
  min-height: min(72vh, 640px);
}

.home-pres__dark-hero--compact .home-pres__dark-hero-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.home-pres__dark-hero-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-pres__dark-hero-media {
  position: relative;
  overflow: hidden;
  min-height: min(58vh, 520px);
}

.home-pres__dark-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.home-pres__dark-hero-copy {
  max-width: 42rem;
  padding: clamp(1.5rem, 4vw, 2.75rem) var(--home-pres-pad-x) clamp(2rem, 5vw, 3rem);
}

.home-pres__dark-hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
}

.home-pres__dark-hero-lede {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.88;
}

/* Split bands */
.home-pres__split {
  background: var(--home-pres-band-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-pres__split--lead {
  padding-top: calc(var(--home-pres-gap) * 1.1);
}

.home-pres__split-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
}

.home-pres__split-stretch {
  position: absolute;
  inset: 0;
  z-index: 0;
  text-decoration: none;
  color: inherit;
}

.home-pres__split-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  color: inherit;
  text-decoration: none;
}

.home-pres__split-media,
.home-pres__split-copy {
  position: relative;
  z-index: 1;
}

.home-pres__split-copy {
  display: flex;
  flex-direction: column;
}

.home-pres__split-inner--actions .home-pres__split-media,
.home-pres__split-inner--actions .home-pres__split-copy {
  pointer-events: none;
}

.home-pres__split-inner--actions .home-pres__split-actions,
.home-pres__split-inner--actions .home-pres__split-actions a {
  pointer-events: auto;
}

.home-pres__split--reverse .home-pres__split-inner,
.home-pres__split--reverse .home-pres__split-link {
  direction: rtl;
}

.home-pres__split--reverse .home-pres__split-copy,
.home-pres__split--reverse .home-pres__split-media {
  direction: ltr;
}

.home-pres__split-media {
  overflow: hidden;
  min-height: 220px;
  background: rgba(0, 0, 0, 0.04);
}

.home-pres__split-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.home-pres__split-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
}

.home-pres__split-excerpt {
  margin: 0;
  line-height: 1.55;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .home-pres__split-inner,
  .home-pres__split-link {
    grid-template-columns: 1fr;
  }
  .home-pres__split--reverse .home-pres__split-inner,
  .home-pres__split--reverse .home-pres__split-link {
    direction: ltr;
  }
}

/* Services rows */
.home-pres__services {
  max-width: 72rem;
  margin: 0 auto;
}

.home-pres__services-intro {
  margin-bottom: 2rem;
}

.home-pres__service-row {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2rem 0;
}

.home-pres__service-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.home-pres__service-row--reverse .home-pres__service-link {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.home-pres__service-row--reverse .home-pres__service-media {
  order: 2;
}

.home-pres__service-media {
  min-height: 180px;
  overflow: hidden;
}

.home-pres__service-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.home-pres__service-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.home-pres__service-text {
  margin: 0;
  line-height: 1.5;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .home-pres__service-link,
  .home-pres__service-row--reverse .home-pres__service-link {
    grid-template-columns: 1fr;
  }
  .home-pres__service-row--reverse .home-pres__service-media {
    order: 0;
  }
}

/* Testimonial */
.home-pres__testimonial {
  text-align: center;
  background: var(--home-pres-band-bg);
}

.home-pres__testimonial-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0;
  border: 0;
}

.home-pres__testimonial-quote {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.45;
  font-style: italic;
}

.home-pres__testimonial-meta {
  font-size: 0.9rem;
  opacity: 0.8;
}

.home-pres__testimonial-name {
  font-style: normal;
  font-weight: 600;
}

/* Logos strip */
.home-pres__logos {
  text-align: center;
  padding-top: calc(var(--home-pres-gap) * 0.75);
  padding-bottom: calc(var(--home-pres-gap) * 0.75);
}

.home-pres__logos-title {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.home-pres__logos-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-pres__logos-link {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: inherit;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.home-pres__logos-link:hover {
  opacity: 1;
}

/* CTA band */
.home-pres__cta {
  background: var(--home-pres-dark);
  color: var(--home-pres-dark-text);
  text-align: center;
}

.home-pres__cta-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.home-pres__cta-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.home-pres__cta-text {
  margin: 0 0 1.25rem;
  opacity: 0.85;
}

.home-pres__cta-button {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-pres__cta-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Portfolio strip */
.home-pres__portfolio-strip-head {
  max-width: 72rem;
  margin: 0 auto 1rem;
  padding: 0 var(--home-pres-pad-x);
}

.home-pres__portfolio-strip-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 var(--home-pres-pad-x) 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.home-pres__portfolio-tile {
  flex: 0 0 min(280px, 78vw);
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  color: inherit;
  background: rgba(0, 0, 0, 0.05);
}

.home-pres__portfolio-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.home-pres__portfolio-tile:hover img {
  transform: scale(1.03);
}

.home-pres__portfolio-tile-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(180deg, transparent 0%, transparent 72%, rgba(0, 0, 0, 0.55) 88%, rgba(0, 0, 0, 0.72) 100%);
  color: #fff;
}

/* Latest minimal */
.home-pres__latest-minimal {
  max-width: 40rem;
  margin: 0 auto;
}

.home-pres__latest-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.home-pres__latest-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.home-pres__latest-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  color: inherit;
  text-decoration: none;
}

.home-pres__latest-link:hover .home-pres__latest-title {
  text-decoration: underline;
}

.home-pres__latest-date {
  flex-shrink: 0;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* Composer slot — flat, no card chrome */
.home-pres__composer .rj-composer-block,
.home-pres--composer .home-pres__composer-embed .rj-composer-block,
.home-pres--composer .home-pres__composer-fallback .rj-composer-block {
  max-width: 72rem;
  margin: 0 auto 1.5rem;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.home-pres__composer .rj-composer-block__title,
.home-pres--composer .home-pres__composer-embed .rj-composer-block__title,
.home-pres--composer .home-pres__composer-fallback .rj-composer-block__title {
  font-size: 1.1rem;
  font-weight: 600;
}

.home-pres--composer .home-pres__section {
  margin-bottom: 0;
}

.home-pres__empty {
  text-align: center;
}

.home-pres__empty-text {
  margin: 0.5rem 0 0;
  opacity: 0.72;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.home-pres--composer .home-pres__composer-fallback .rj-composer-block__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 72rem;
  margin: 0 auto;
}

.home-pres--composer .home-pres__composer-fallback .rj-card {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

.home-pres--composer .home-pres__composer-fallback .rj-card__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: inherit;
}

.home-pres--composer .home-pres__composer-fallback .rj-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

.home-pres--composer .home-pres__composer-fallback .rj-card__media {
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.home-pres--composer .home-pres__composer-fallback .rj-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-pres--composer .home-pres__composer-fallback .rj-card__date-badge {
  display: none;
}

.home-pres--composer .home-pres__composer-embed--composite .rj-composer-composite {
  border: 0;
  box-shadow: none;
  background: transparent;
  max-width: 72rem;
  margin: 0 auto;
}

.home-pres--composer .home-pres__composer-embed--composite .rj-composer-block__grid > .rj-card {
  border: 0;
  box-shadow: none;
}

@media (max-width: 720px) {
  .home-pres--composer .home-pres__composer-fallback .rj-card__panel,
  .home-pres--composer .home-pres__composer-fallback .rj-card__link {
    grid-template-columns: 1fr;
  }
}

/* Three promo cards row */
.home-pres__promo-cards {
  padding-top: calc(var(--home-pres-gap) * 0.9);
}

.home-pres__promo-head {
  margin-bottom: 1.5rem;
}

.home-pres__promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-pres__promo-grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-pres__promo-grid--cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-pres__promo-grid--cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.home-pres__promo-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.home-pres__promo-rows .home-pres__promo-grid {
  margin: 0;
}

.home-pres__promo-card-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  color: #fff;
  background: var(--home-pres-dark);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-pres__promo-card-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.home-pres__promo-card-stretch {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  text-decoration: none;
  color: inherit;
}

.home-pres__promo-card-stretch:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.home-pres__promo-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--home-pres-dark);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-pres__promo-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.home-pres__promo-card-panel--actions .home-pres__promo-card-media,
.home-pres__promo-card-panel--actions .home-pres__promo-card-body {
  pointer-events: none;
}

.home-pres__promo-card-panel--actions .home-pres__promo-actions,
.home-pres__promo-card-panel--actions .home-pres__promo-actions a {
  pointer-events: auto;
}

.home-pres__promo-card-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  min-height: 160px;
  overflow: hidden;
}

.home-pres__promo-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-pres__promo-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 75%, rgba(0, 0, 0, 0.42) 88%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.home-pres__promo-card-body {
  margin-top: -3.5rem;
  position: relative;
  z-index: 1;
  padding: 0 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.home-pres__promo-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.home-pres__promo-card-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.9;
}

.home-pres__promo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.home-pres__promo-chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.home-pres__promo-cta {
  display: inline-block;
  margin-top: auto;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  align-self: flex-start;
}

.home-pres__promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.home-pres__promo-card-body .home-pres__promo-cta.home-pres__action-btn {
  position: relative;
  z-index: 2;
}

.home-pres__promo-card-body .home-pres__action-btn,
.home-pres__split-actions .home-pres__action-btn,
.home-pres__dark-hero-actions .home-pres__action-btn,
.home-pres__media-text-actions .home-pres__action-btn {
  text-decoration: none;
}

.home-pres__split-actions,
.home-pres__dark-hero-actions,
.home-pres__media-text-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin-top: auto;
  align-self: flex-start;
  position: relative;
  z-index: 2;
}

.home-pres__action-btn {
  cursor: pointer;
}

/* Promo cards — footer bar layout (title left, actions right) */
.home-pres__promo-cards--footer-bar .home-pres__promo-grid {
  align-items: stretch;
}

.home-pres__promo-cards--footer-bar .home-pres__promo-card {
  display: flex;
}

.home-pres__promo-cards--footer-bar .home-pres__promo-card-panel--footer-bar {
  background: var(--home-pres-dark);
  flex: 1 1 auto;
  width: 100%;
}

.home-pres__promo-cards--footer-bar .home-pres__promo-card-media {
  aspect-ratio: 16 / 10;
  min-height: 140px;
}

.home-pres__promo-cards--footer-bar .home-pres__promo-card-media .home-pres__promo-card-scrim {
  display: none;
}

.home-pres__promo-card-body--footer-bar {
  margin-top: 0;
  padding: 0.85rem 1rem 0.5rem;
  flex: 0 0 auto;
}

.home-pres__promo-card-body--footer-bar .home-pres__promo-card-text {
  margin: 0;
}

.home-pres__promo-cards--footer-bar .home-pres__promo-card-foot {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: auto;
  min-height: 3.35rem;
  padding: 0.9rem 1rem 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  z-index: 1;
}

.home-pres__promo-cards--footer-bar .home-pres__promo-card-foot-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  align-self: center;
}

.home-pres__promo-cards--footer-bar .home-pres__promo-foot-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.55rem;
  margin: 0;
  max-width: 58%;
}

.home-pres__promo-cards--footer-bar .home-pres__promo-foot-actions .home-pres__promo-cta {
  flex-shrink: 0;
  margin-top: 0;
  white-space: nowrap;
}

.home-pres__promo-cards--footer-bar a.home-pres__promo-cta--foot {
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}

/* Stretch link receives card clicks; media/body pass through */
.home-pres__promo-card-panel--footer-bar .home-pres__promo-card-media,
.home-pres__promo-card-panel--footer-bar .home-pres__promo-card-body--footer-bar {
  pointer-events: none;
}

.home-pres__promo-card-panel--footer-bar .home-pres__promo-card-foot {
  pointer-events: none;
}

.home-pres__promo-card-panel--footer-bar .home-pres__promo-foot-actions,
.home-pres__promo-card-panel--footer-bar .home-pres__promo-foot-actions a,
.home-pres__promo-card-panel--footer-bar a.home-pres__promo-cta--foot {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

@media (max-width: 480px) {
  .home-pres__promo-cards--footer-bar .home-pres__promo-foot-actions {
    max-width: 48%;
    gap: 0.35rem;
  }
  .home-pres__promo-cards--footer-bar .home-pres__promo-foot-actions .home-pres__promo-cta {
    font-size: 0.72rem;
    padding: 0.4rem 0.65rem;
  }
}

@media (max-width: 960px) {
  .home-pres__promo-grid,
  .home-pres__promo-grid--cols-3,
  .home-pres__promo-grid--cols-4,
  .home-pres__promo-grid--cols-5,
  .home-pres__promo-grid--cols-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-pres__promo-grid,
  .home-pres__promo-grid--cols-3,
  .home-pres__promo-grid--cols-4,
  .home-pres__promo-grid--cols-5,
  .home-pres__promo-grid--cols-6 {
    grid-template-columns: 1fr;
  }
}

/* Split media + text */
.home-pres__media-text-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.home-pres__media-text-link {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.home-pres__media-text--reverse .home-pres__media-text-link {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.home-pres__media-text--reverse .home-pres__media-text-visual {
  order: 2;
}

.home-pres__media-text-visual {
  border-radius: 0.85rem;
  overflow: hidden;
  min-height: 220px;
  background: rgba(0, 0, 0, 0.06);
}

.home-pres__media-text-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.home-pres__media-text-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
}

.home-pres__media-text-lede {
  margin: 0;
  line-height: 1.55;
  opacity: 0.88;
}

.home-pres__media-text-cta {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.9;
}

@media (max-width: 720px) {
  .home-pres__media-text-link,
  .home-pres__media-text--reverse .home-pres__media-text-link {
    grid-template-columns: 1fr;
  }
  .home-pres__media-text--reverse .home-pres__media-text-visual {
    order: 0;
  }
}

/* Stats band */
.home-pres__stats-title {
  text-align: center;
  margin-bottom: 1.75rem;
}

.home-pres__stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.home-pres__stat {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.04);
}

.home-pres__stat-value {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home-pres__stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.35;
  opacity: 0.8;
}

/* Testimonial open */
.home-pres__testimonial-open-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
  border: 0;
  text-align: center;
}

.home-pres__testimonial-open-mark {
  margin: 0 0 -0.5rem;
  font-size: 3rem;
  line-height: 1;
  opacity: 0.25;
  font-family: Georgia, "Times New Roman", serif;
}

.home-pres__testimonial-open-quote {
  margin: 0 0 1.25rem;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  line-height: 1.5;
  font-weight: 400;
}

.home-pres__testimonial-open-name {
  font-style: normal;
  font-weight: 600;
}

.home-pres__testimonial-open-role {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  opacity: 0.75;
}

/* Logos / partners strip */
.home-pres__logos-partners {
  padding-top: calc(var(--home-pres-gap) * 0.65);
  padding-bottom: calc(var(--home-pres-gap) * 0.65);
}

.home-pres__logos-partners-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}

.home-pres__logos-partners-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-pres__logos-partners-pill {
  margin: 0;
}

.home-pres__logos-partners-link {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.home-pres__logos-partners-link:hover {
  opacity: 1;
  border-color: rgba(0, 0, 0, 0.28);
}

/* Editorial list */
.home-pres__editorial-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.home-pres__editorial-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.home-pres__editorial-row-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  color: inherit;
  text-decoration: none;
}

.home-pres__editorial-thumb {
  display: block;
  width: 96px;
  height: 72px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}

.home-pres__editorial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-pres__editorial-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.home-pres__editorial-title {
  font-weight: 600;
  line-height: 1.3;
}

.home-pres__editorial-excerpt {
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.78;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-pres__editorial-date {
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0.65;
}

@media (max-width: 640px) {
  .home-pres__editorial-row-link {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .home-pres__editorial-date {
    justify-self: start;
  }
}

/* Theme pack tuning */
body.theme-pack--studio-dark .home-pres {
  --home-pres-band-bg: rgba(255, 255, 255, 0.04);
  --home-pres-dark: #0c1018;
}

body.theme-pack--luxury-dark .home-pres {
  --home-pres-accent: var(--rj-gold, #c9a962);
}

body.theme-pack--luxury-dark .home-pres__cta-button {
  border-color: rgba(201, 169, 98, 0.45);
}

body.theme-pack--portfolio-clean .home-pres__split,
body.theme-pack--minimal-light .home-pres__split {
  background: transparent;
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.theme-pack--portfolio-clean .home-pres__logos-link {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

body.theme-pack--magazine-bold .home-pres__dark-hero-title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Presentation gallery frames (by_gallery) */
.home-pres__gallery-frames {
  overflow: hidden;
}

.home-pres__gallery-frames-head .home-pres__section-title {
  margin-bottom: 1.25rem;
}

.home-pres__gallery-frames-track {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: flex-end;
  justify-content: center;
}

.home-pres__gallery-frames--strip .home-pres__gallery-frames-body {
  padding-left: 0;
  padding-right: 0;
}

.home-pres__gallery-frames--strip .home-pres__gallery-frames-track {
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem var(--home-pres-pad-x) 1.25rem;
  margin: 0 calc(-1 * var(--home-pres-pad-x));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.home-pres__gallery-frames--strip .home-pres__gallery-frame {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.home-pres__gallery-frames--grid .home-pres__gallery-frames-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.home-pres__gallery-frames--showcase .home-pres__gallery-frames-track {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: end;
}

.home-pres__gallery-frames--showcase .home-pres__gallery-frame {
  grid-column: span 4;
}

.home-pres__gallery-frames--showcase .home-pres__gallery-frame:nth-child(3n + 2) {
  transform: translateY(-0.35rem);
}

.home-pres__gallery-frames--showcase .home-pres__gallery-frame--hero {
  grid-column: span 6;
}

.home-pres__gallery-frame {
  margin: 0;
  max-width: 100%;
  position: relative;
}

.home-pres__gallery-frame-mat {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.home-pres__gallery-frame-window {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  line-height: 0;
}

.home-pres__gallery-frame-window img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.home-pres__gallery-frame-caption {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  opacity: 0.72;
  font-style: italic;
}

/* Frame styles */
.home-pres__gallery-frame--classic {
  padding: 0.55rem;
  background: linear-gradient(145deg, #f8f6f1 0%, #e8e4dc 48%, #d4cfc4 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 28px rgba(20, 24, 31, 0.14),
    0 2px 6px rgba(20, 24, 31, 0.08);
}

.home-pres__gallery-frame--classic .home-pres__gallery-frame-window {
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.home-pres__gallery-frame--gilt {
  padding: 0.65rem;
  background: linear-gradient(135deg, #3d3428 0%, #1f1a14 40%, #5c4d32 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.home-pres__gallery-frame--gilt .home-pres__gallery-frame-mat {
  border: 2px solid rgba(201, 169, 98, 0.55);
  inset: 0.35rem;
}

.home-pres__gallery-frame--gilt .home-pres__gallery-frame-window {
  box-shadow: inset 0 0 0 1px rgba(201, 169, 98, 0.35);
}

.home-pres__gallery-frame--shadow {
  padding: 0.35rem;
  background: #fff;
  box-shadow:
    0 22px 40px rgba(20, 24, 31, 0.18),
    0 6px 14px rgba(20, 24, 31, 0.1);
  transform: rotate(-1.2deg);
}

.home-pres__gallery-frame--shadow:nth-child(even) {
  transform: rotate(1deg);
}

.home-pres__gallery-frame--polaroid {
  padding: 0.65rem 0.65rem 2.1rem;
  background: #faf9f6;
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.12);
}

.home-pres__gallery-frame--polaroid .home-pres__gallery-frame-window img {
  aspect-ratio: 1;
}

.home-pres__gallery-frame--polaroid .home-pres__gallery-frame-caption {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.45rem;
  margin: 0;
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 0.82rem;
  opacity: 0.85;
}

.home-pres__gallery-frame--ornate {
  padding: 0.85rem;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(160deg, #2a2520, #0f0e0c);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.home-pres__gallery-frame--ornate .home-pres__gallery-frame-mat {
  border: 3px double rgba(201, 169, 98, 0.45);
  inset: 0.5rem;
}

.home-pres__gallery-frame--ornate .home-pres__gallery-frame-window {
  border: 1px solid rgba(201, 169, 98, 0.25);
}

.home-pres__gallery-frame--museum {
  padding: 0.25rem;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.home-pres__gallery-frame--museum .home-pres__gallery-frame-window img {
  aspect-ratio: 3 / 2;
  filter: contrast(1.04) saturate(0.92);
}

.home-pres__gallery-frame--hero {
  max-width: 520px;
}

.home-pres__gallery-frame--hero .home-pres__gallery-frame-window img {
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

@media (max-width: 900px) {
  .home-pres__gallery-frames--showcase .home-pres__gallery-frame,
  .home-pres__gallery-frames--showcase .home-pres__gallery-frame--hero {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .home-pres__gallery-frames--showcase .home-pres__gallery-frame,
  .home-pres__gallery-frames--showcase .home-pres__gallery-frame--hero {
    grid-column: span 12;
  }
  .home-pres__gallery-frames--grid .home-pres__gallery-frames-track {
    grid-template-columns: repeat(2, 1fr);
  }
}
