/* StableGen Scroll Hero */

.osh-section {
  position: relative;
  height: var(--osh-height, 260vh);
  min-height: 1600px;
  background: var(--osh-bg, #f7f6f2);
  color: var(--osh-text, #fff);
  overflow: clip;
  isolation: isolate;
  font-family: inherit;
}

/* Break out of theme content width — edge-to-edge viewport */
.osh-section--full-width {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* When WP adds alignfull on the block wrapper, stretch inner section too */
.alignfull .osh-section.osh-section--full-width {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.osh-section *,
.osh-section *::before,
.osh-section *::after {
  box-sizing: border-box;
}

.osh-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.osh-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 0;
  transform-origin: center center;
  will-change: transform, width, height, border-radius;
}

.osh-visual img,
.osh-hero-video,
.osh-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.osh-hero-video {
  background: #111;
}

.osh-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--osh-overlay-opacity, 0.28);
  pointer-events: none;
}

.osh-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  padding: 14px clamp(20px, 5vw, 72px);
  z-index: 1000;
  background: transparent;
  border-radius: 0;
  transform: translateX(0);
  color: #fff;
  will-change: transform, width, top, background, border-radius, box-shadow, padding;
}

.osh-header-static {
  pointer-events: none;
}

.osh-header-static .osh-header-inner {
  pointer-events: auto;
}

.osh-header-inner {
  height: 100%;
  width: 100%;
  display: grid;
  align-items: center;
  gap: 24px;
}

/* Logo + CTA only (no hero menu; page uses theme navigation). */
.osh-header-no-menu .osh-header-inner {
  grid-template-columns: 1fr auto;
}

.osh-header-no-menu .osh-mobile-toggle {
  display: none;
}

/* Default / StableGen-style menu alignment:
   [Logo]          [Menu centered]          [CTA] */
.osh-menu-align-center .osh-header-inner {
  grid-template-columns: 1fr auto 1fr;
}

/* Corporate-style left menu:
   [Logo] [Menu]                         [CTA] */
.osh-menu-align-left .osh-header-inner {
  grid-template-columns: auto 1fr auto;
}

/* Right-heavy menu:
   [Logo]                         [Menu] [CTA] */
.osh-menu-align-right .osh-header-inner {
  grid-template-columns: 1fr auto auto;
}

.osh-logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.osh-logo:hover,
.osh-logo:focus,
.osh-nav a:hover,
.osh-nav a:focus {
  color: #fff;
  text-decoration: none;
}

.osh-logo img {
  height: 30px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.osh-logo-mark {
  width: 29px;
  height: 29px;
  border-radius: 999px;
  display: inline-block;
  border: 3px solid currentColor;
  position: relative;
}

.osh-logo-mark::before,
.osh-logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 2px solid currentColor;
}

.osh-logo-mark::after {
  inset: 10px;
}

.osh-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.osh-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.osh-menu-align-left .osh-nav {
  justify-self: start;
}

.osh-menu-align-center .osh-nav {
  justify-self: center;
}

.osh-menu-align-right .osh-nav {
  justify-self: end;
}

.osh-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.osh-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  color: #050505;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.osh-cta:hover,
.osh-cta:focus {
  color: #050505;
  text-decoration: none;
}

.osh-mobile-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  cursor: pointer;
}

.osh-mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #050505;
  margin: 5px 0;
}

.osh-hero-title {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(1100px, calc(100% - 48px));
  max-width: calc(100% - 48px);
  margin: 0;
  padding: 0 clamp(16px, 3vw, 32px);
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--osh-hero-title-color, var(--osh-text, #fff));
  font-size: var(--osh-hero-title-font-size, clamp(40px, 4.6vw, 74px));
  font-family: var(--osh-hero-title-font-family, inherit);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
  overflow: visible;
  will-change: opacity, transform;
}

.osh-scroll-label {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 15vh;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  will-change: opacity, transform;
}

.osh-scroll-label-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: osh-scroll-bounce 1.8s ease-in-out infinite;
  will-change: transform;
}

.osh-scroll-icon {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
}

@keyframes osh-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

.osh-logo-marquee {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  width: var(--osh-logo-marquee-width, 100%);
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  color: #fff;
  opacity: 0.95;
  will-change: opacity, transform;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--osh-logo-mask-fade, 8%),
    #000 calc(100% - var(--osh-logo-mask-fade, 8%)),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--osh-logo-mask-fade, 8%),
    #000 calc(100% - var(--osh-logo-mask-fade, 8%)),
    transparent 100%
  );
}

.osh-logo-align-bottom {
  top: auto;
  bottom: 34px;
}

/* Same bottom row as default; marquee box centered horizontally */
.osh-logo-align-center {
  top: auto;
  bottom: 34px;
}

.osh-logo-track {
  display: flex;
  width: max-content;
  animation-duration: var(--osh-logo-speed, 35s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.osh-logo-marquee-left .osh-logo-track {
  animation-name: osh-marquee-left;
}

.osh-logo-marquee-right .osh-logo-track {
  animation-name: osh-marquee-right;
}

.osh-logo-marquee:hover .osh-logo-track,
.osh-logo-marquee:focus-within .osh-logo-track {
  animation-play-state: paused;
}

.osh-logo-marquee--static .osh-logo-track {
  animation: none;
  width: 100%;
  justify-content: center;
}

.osh-logo-marquee--static {
  -webkit-mask-image: none;
  mask-image: none;
}

.osh-logo-group {
  display: flex;
  align-items: center;
  gap: clamp(38px, 5vw, 92px);
  padding-inline: clamp(22px, 4vw, 64px);
  flex: 0 0 auto;
}

.osh-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 25px);
  line-height: 1;
  white-space: nowrap;
}

.osh-logo-item:hover,
.osh-logo-item:focus {
  color: #fff;
  text-decoration: none;
}

.osh-logo-item img {
  max-height: var(--osh-logo-height, 30px);
  max-width: 180px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@keyframes osh-marquee-left {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes osh-marquee-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.osh-final-content {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: stretch;
  gap: clamp(20px, 3vw, 72px);
  padding: 0 clamp(20px, 4vw, 56px);
  pointer-events: none;
  color: var(--osh-dark-text, #050505);
  overflow: visible;
}

.osh-title-left,
.osh-title-right {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.07em;
  font-weight: 500;
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
  text-wrap: balance;
  opacity: 0;
  max-width: min(520px, 42vw);
  will-change: opacity, transform;
}

.osh-title-left {
  color: var(--osh-title-left-color, var(--osh-dark-text, #050505));
  font-size: var(--osh-title-left-font-size, clamp(36px, 4vw, 72px));
  font-family: var(--osh-title-left-font-family, inherit);
  justify-self: end;
  text-align: right;
  padding-inline-end: var(--osh-title-left-end-spacing, clamp(8px, 1.5vw, 20px));
}

.osh-title-right {
  color: var(--osh-title-right-color, var(--osh-dark-text, #050505));
  font-size: var(--osh-title-right-font-size, clamp(36px, 4vw, 72px));
  font-family: var(--osh-title-right-font-family, inherit);
  justify-self: start;
  text-align: left;
  padding-inline-start: var(--osh-title-right-start-spacing, clamp(8px, 1.5vw, 20px));
}

.osh-card-stack {
  position: relative;
  width: min(var(--osh-card-width, 520px), 34vw);
  height: min(var(--osh-card-height, 520px), 58vh);
  min-width: 300px;
  min-height: 360px;
  opacity: 0;
  transform: scale(0.82);
  will-change: opacity, transform;
}

.osh-card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--osh-card-radius, 36px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.16);
  background: #ddd;
}

.osh-card-back {
  inset: -70px -70px 70px 70px;
  opacity: 0.62;
}

.osh-card-mid {
  inset: -24px -24px 24px 24px;
  opacity: 0.76;
}

.osh-card-front {
  inset: 70px 70px -70px -70px;
}

.osh-subtitle {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 5vh;
  width: min(620px, calc(100% - 40px));
  transform: translateX(-50%) translateY(18px);
  margin: 0;
  color: var(--osh-subtitle-color, var(--osh-dark-text, #050505));
  text-align: center;
  font-size: var(--osh-subtitle-font-size, clamp(18px, 1.35vw, 24px));
  font-family: var(--osh-subtitle-font-family, inherit);
  line-height: 1.25;
  letter-spacing: -0.02em;
  opacity: 0;
  will-change: opacity, transform;
}

/* Tablet and smaller — stack split titles above / below the card */
@media (max-width: 1024px) {
  .osh-final-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.8vh, 28px);
    padding: clamp(40px, 9vh, 88px) clamp(16px, 4vw, 28px) clamp(96px, 12vh, 128px);
  }

  .osh-title-left,
  .osh-title-right {
    flex: 0 0 auto;
    width: 100%;
    max-width: min(680px, calc(100% - 24px));
    justify-self: center;
    text-align: center;
    padding-inline: 0;
  }

  .osh-title-left {
    order: 1;
    font-size: var(--osh-title-left-font-size, clamp(32px, 5.5vw, 52px));
  }

  .osh-card-stack {
    order: 2;
    flex: 0 0 auto;
    width: min(72vw, 420px);
    height: min(50vh, 440px);
    min-width: 0;
    min-height: 280px;
    margin-inline: auto;
  }

  .osh-title-right {
    order: 3;
    font-size: var(--osh-title-right-font-size, clamp(32px, 5.5vw, 52px));
  }

  .osh-card-back {
    inset: -32px -32px 32px 32px;
  }

  .osh-card-mid {
    inset: -12px -12px 12px 12px;
  }

  .osh-card-front {
    inset: 36px 36px -36px -36px;
  }
}

/* Phone */
@media (max-width: 900px) {
  .osh-section {
    height: 210vh;
    min-height: 1200px;
  }

  .osh-sticky {
    min-height: 620px;
  }

  .osh-header {
    height: 70px;
    padding: 12px 18px;
  }

  .osh-header-inner {
    display: flex;
    justify-content: space-between;
  }

  .osh-nav,
  .osh-cta {
    display: none;
  }

  .osh-mobile-toggle {
    display: block;
  }

  .osh-logo {
    font-size: 20px;
  }

  .osh-hero-title {
    top: 46%;
    width: min(620px, calc(100% - 32px));
    max-width: calc(100% - 32px);
    font-size: var(--osh-hero-title-font-size, clamp(34px, 9vw, 56px));
    line-height: 1.1;
  }

  .osh-scroll-label {
    bottom: 18vh;
  }

  .osh-logo-marquee.osh-logo-align-bottom {
    bottom: 28px;
  }

  .osh-logo-marquee.osh-logo-align-center {
    top: auto;
    bottom: 28px;
  }

  .osh-logo-group {
    gap: 34px;
    padding-inline: 18px;
  }

  .osh-logo-item {
    font-size: 18px;
  }

  .osh-final-content {
    gap: 16px;
    padding-top: 36px;
    padding-bottom: 108px;
  }

  .osh-title-left {
    font-size: var(--osh-title-left-font-size, clamp(28px, 8vw, 44px));
  }

  .osh-title-right {
    font-size: var(--osh-title-right-font-size, clamp(28px, 8vw, 44px));
  }

  .osh-card-stack {
    width: min(76vw, 360px);
    height: min(58vh, 400px);
    min-height: 260px;
  }

  .osh-card-back {
    inset: -28px -28px 28px 28px;
  }

  .osh-card-mid {
    inset: -10px -10px 10px 10px;
  }

  .osh-card-front {
    inset: 42px 42px -42px -42px;
  }

  .osh-subtitle {
    bottom: 4vh;
    font-size: var(--osh-subtitle-font-size, 18px);
  }
}

/* Respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .osh-section {
    height: auto;
    min-height: 100vh;
  }

  .osh-sticky {
    position: relative;
  }

  .osh-scroll-label-inner {
    animation: none;
    transform: none;
  }

  .osh-final-content,
  .osh-subtitle {
    opacity: 1;
  }
}


@media (prefers-reduced-motion: reduce) {
  .osh-logo-track {
    animation: none;
  }
}
