.shb-hero {
  --shb-height: 80vh;
  --shb-mobile-height: var(--shb-height);
  --shb-focal-x: 50%;
  --shb-focal-y: 50%;
  --shb-object-fit: cover;
  --shb-overlay-color: #000000;
  --shb-overlay-opacity: 0.45;
  --shb-text-color: #ffffff;
  --shb-accent-color: #C6A25A;
  --shb-content-width: 860px;
  --shb-logo-size: 240px;
  --shb-logo-opacity: 1;
  --shb-eyebrow-size: 14px;
  --shb-heading-size: 84px;
  --shb-description-size: 20px;
  --shb-button-size: 16px;
  position: relative;
  min-height: var(--shb-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--shb-text-color);
  isolation: isolate;
}

/* Width modes */
.shb-width-wide {
  width: 100%;
  max-width: 100%;
}

.shb-width-full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

body {
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  body {
    overflow-x: hidden;
  }
}

/* Reduce default WordPress/Blocksy block spacing when the hero is used as the first visual section. */
.wp-block-shortcode:has(.shb-width-full-bleed),
.wp-block-group:has(.shb-width-full-bleed) {
  max-width: none;
}

.shb-media,
.shb-media img,
.shb-media video,
.shb-overlay,
.shb-vignette {
  position: absolute;
  inset: 0;
}

.shb-media {
  z-index: -3;
  background: #111;
}

.shb-image,
.shb-video {
  width: 100%;
  height: 100%;
  object-fit: var(--shb-object-fit);
  object-position: var(--shb-focal-x) var(--shb-focal-y);
}

.shb-overlay {
  z-index: -2;
  background: var(--shb-overlay-color);
  opacity: var(--shb-overlay-opacity);
}

.shb-vignette {
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at center, transparent 35%, rgba(0,0,0,.45) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.25), transparent 30%, rgba(0,0,0,.35));
}

.shb-has-vignette .shb-vignette {
  opacity: 1;
}

.shb-inner {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) 0;
  position: relative;
  z-index: 1;
}

.shb-content {
  width: min(100%, var(--shb-content-width));
}

.shb-logo-wrap {
  margin-bottom: clamp(16px, 3vw, 32px);
}

.shb-logo {
  display: block;
  max-width: min(100%, var(--shb-logo-size));
  height: auto;
  opacity: var(--shb-logo-opacity);
}

.shb-eyebrow {
  color: var(--shb-accent-color);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: clamp(12px, 1.1vw, var(--shb-eyebrow-size));
  margin-bottom: .75rem;
}

.shb-heading {
  color: inherit;
  font-size: clamp(2.4rem, 7vw, var(--shb-heading-size));
  line-height: .95;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  max-width: 12ch;
}

.shb-description {
  font-size: clamp(1rem, 1.4vw, var(--shb-description-size));
  line-height: 1.55;
  max-width: 58ch;
}

.shb-description p {
  margin: 0 0 1em;
}

.shb-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.shb-button,
.shb-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: var(--shb-button-size);
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.shb-button:hover,
.shb-inline-button:hover {
  transform: translateY(-1px);
}

.shb-button-primary,
.shb-inline-button {
  background: var(--shb-accent-color);
  color: #1f1f1b;
}

.shb-button-secondary {
  border: 2px solid currentColor;
  color: currentColor;
}

/* Hero Layouts */
.shb-layout-center {
  text-align: center;
}

.shb-layout-center .shb-content,
.shb-layout-center .shb-description,
.shb-layout-center .shb-heading {
  margin-left: auto;
  margin-right: auto;
}

.shb-layout-center .shb-logo {
  margin-left: auto;
  margin-right: auto;
}

.shb-layout-center .shb-buttons {
  justify-content: center;
}

.shb-layout-bottom-left {
  align-items: flex-end;
}

.shb-layout-bottom-left .shb-inner {
  padding-bottom: clamp(48px, 10vw, 120px);
}

.shb-layout-split .shb-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
  width: 100%;
  max-width: 1120px;
}

.shb-layout-split .shb-logo-wrap {
  grid-column: 2;
  grid-row: 1 / span 5;
  margin: 0;
}

.shb-layout-split .shb-logo {
  max-width: min(32vw, var(--shb-logo-size));
}

.shb-layout-logo-only .shb-content {
  text-align: center;
  margin-inline: auto;
}

.shb-layout-logo-only .shb-logo {
  margin: 0 auto;
  max-width: min(72vw, var(--shb-logo-size));
}

.shb-layout-logo-only .shb-eyebrow,
.shb-layout-logo-only .shb-heading,
.shb-layout-logo-only .shb-description,
.shb-layout-logo-only .shb-buttons {
  display: none;
}

.shb-layout-editorial .shb-content {
  border-left: 5px solid var(--shb-accent-color);
  padding-left: clamp(18px, 3vw, 34px);
}

.shb-layout-editorial .shb-heading {
  max-width: 14ch;
}

.shb-layout-immersive {
  min-height: 100vh;
  align-items: flex-end;
}

.shb-layout-immersive .shb-content {
  max-width: 620px;
}

.shb-layout-immersive .shb-heading {
  font-size: clamp(2rem, 5vw, 4rem);
}

/* Logo positioning helpers */
.shb-logo-below .shb-logo-wrap {
  order: 10;
  margin-top: 28px;
  margin-bottom: 0;
}

.shb-logo-center .shb-logo-wrap {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  pointer-events: none;
}

.shb-logo-center .shb-logo {
  max-width: min(70vw, var(--shb-logo-size));
}

.shb-logo-top .shb-logo-wrap,
.shb-logo-bottom .shb-logo-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

.shb-logo-top .shb-logo-wrap {
  top: clamp(24px, 5vw, 64px);
}

.shb-logo-bottom .shb-logo-wrap {
  bottom: clamp(24px, 5vw, 64px);
}

.shb-logo-top .shb-logo,
.shb-logo-bottom .shb-logo {
  max-width: min(60vw, var(--shb-logo-size));
}

/* Slider */
.shb-slider {
  position: relative;
  min-height: var(--shb-height);
  overflow: hidden;
  background: #111;
}

.shb-slider-track {
  position: relative;
  min-height: var(--shb-height);
}

.shb-slider-slide {
  position: absolute;
  inset: 0;
  min-height: var(--shb-height);
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease, transform .8s ease;
}

.shb-slider-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.shb-slider-transition-slide .shb-slider-slide {
  transform: translateX(4%);
}

.shb-slider-transition-slide .shb-slider-slide.is-active {
  transform: translateX(0);
}

.shb-slider-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.shb-slider-prev { left: 18px; }
.shb-slider-next { right: 18px; }

.shb-slider-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.shb-slider-dots button {
  border: 0;
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
}

.shb-slider-dots button.is-active {
  background: #fff;
}

/* Story content shortcodes */
.shb-story-intro,
.shb-story-panel,
.shb-story-quote {
  --shb-accent-color: #C6A25A;
  padding: clamp(48px, 8vw, 110px) clamp(20px, 4vw, 44px);
}

.shb-story-inner {
  max-width: var(--shb-content-width, 860px);
  margin: 0 auto;
}

.shb-story-intro h2,
.shb-story-panel h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin: 0 0 20px;
}

.shb-story-text {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.7;
}

.shb-align-center { text-align: center; }
.shb-align-left { text-align: left; }
.shb-align-right { text-align: right; }

.shb-bg-cream { background: #F5EFDF; color: #2E2E2A; }
.shb-bg-white { background: #fff; color: #2E2E2A; }
.shb-bg-green { background: #425D42; color: #fff; }
.shb-bg-transparent { background: transparent; }

.shb-story-panel {
  max-width: min(1180px, calc(100% - 40px));
  margin: clamp(40px, 6vw, 90px) auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
}

.shb-panel-image-right .shb-panel-media { order: 2; }
.shb-panel-image-top {
  grid-template-columns: 1fr;
}

.shb-panel-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.shb-panel-content {
  padding: clamp(28px, 5vw, 70px);
  align-self: center;
}

.shb-story-quote {
  background-size: cover;
  background-position: center;
}

.shb-story-quote blockquote {
  max-width: 960px;
  margin: 0 auto;
}

.shb-story-quote p {
  font-size: clamp(2rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0;
}

.shb-story-quote cite {
  display: block;
  margin-top: 22px;
  color: var(--shb-accent-color);
  font-style: normal;
  font-weight: 700;
}

.shb-story-divider {
  position: relative;
  overflow: hidden;
}

.shb-story-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.shb-story-divider path {
  fill: none;
  stroke: var(--shb-divider-color);
  stroke-width: 7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.shb-divider-mountains path {
  fill: var(--shb-divider-color);
  stroke: none;
  opacity: .92;
}

.shb-missing {
  background: #fff3cd;
  border: 1px solid #ffe69c;
  padding: 12px;
}

@media (max-width: 760px) {
  .shb-hero,
  .shb-slider,
  .shb-slider-track,
  .shb-slider-slide {
    min-height: var(--shb-mobile-height);
  }

  .shb-inner {
    width: min(100% - 28px, 1180px);
    padding: 38px 0;
  }

  .shb-heading {
    font-size: clamp(2rem, 13vw, 4rem);
  }

  .shb-layout-split .shb-content {
    display: block;
  }

  .shb-layout-split .shb-logo-wrap {
    margin-bottom: 22px;
  }

  .shb-logo {
    max-width: min(74vw, var(--shb-logo-size));
  }

  .shb-hide-logo-mobile .shb-logo-wrap,
  .shb-hide-description-mobile .shb-description,
  .shb-hide-buttons-mobile .shb-buttons {
    display: none !important;
  }

  .shb-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .shb-button {
    width: 100%;
  }

  .shb-slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .shb-story-panel {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .shb-panel-image-right .shb-panel-media {
    order: 0;
  }

  .shb-panel-media img {
    min-height: 240px;
  }
}


/* v1.4 polish: animation presets */
.shb-anim-fade-up .shb-content {
  animation: shbFadeUp .82s cubic-bezier(.2,.72,.2,1) both;
}

.shb-anim-fade .shb-content {
  animation: shbFade .78s ease-out both;
}

.shb-anim-rise-logo .shb-logo-wrap {
  animation: shbFadeUp .9s cubic-bezier(.2,.72,.2,1) both;
}

.shb-anim-rise-logo .shb-eyebrow,
.shb-anim-rise-logo .shb-heading,
.shb-anim-rise-logo .shb-description,
.shb-anim-rise-logo .shb-buttons {
  animation: shbFade .9s ease-out .2s both;
}

.shb-anim-zoom-slow .shb-image,
.shb-anim-zoom-slow .shb-video {
  animation: shbSlowZoom 18s ease-out both;
}

@keyframes shbFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shbSlowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

/* v1.4 polish: overlay styles */
.shb-overlay-style-bottom .shb-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.28) 48%, rgba(0,0,0,.05));
}

.shb-overlay-style-top .shb-overlay {
  opacity: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,.68), rgba(0,0,0,.25) 48%, rgba(0,0,0,.04));
}

.shb-overlay-style-left .shb-overlay {
  opacity: 1;
  background: linear-gradient(to right, rgba(0,0,0,.72), rgba(0,0,0,.35) 45%, rgba(0,0,0,.05));
}

.shb-overlay-style-right .shb-overlay {
  opacity: 1;
  background: linear-gradient(to left, rgba(0,0,0,.72), rgba(0,0,0,.35) 45%, rgba(0,0,0,.05));
}

.shb-overlay-style-radial .shb-overlay {
  opacity: 1;
  background: radial-gradient(circle at var(--shb-focal-x) var(--shb-focal-y), rgba(0,0,0,.08), rgba(0,0,0,.58) 72%, rgba(0,0,0,.78));
}

/* v1.4 preset helpers */
.shb-preset-two-ranges .shb-eyebrow,
.shb-preset-two-ranges .shb-story-quote cite {
  text-shadow: 0 2px 18px rgba(0,0,0,.28);
}

.shb-preset-paper .shb-heading,
.shb-preset-paper .shb-description,
.shb-preset-paper .shb-eyebrow {
  text-shadow: none;
}

.shb-preset-paper .shb-button-secondary {
  color: #2E2E2A;
}

.shb-heading,
.shb-description,
.shb-eyebrow {
  text-shadow: 0 2px 24px rgba(0,0,0,.32);
}

.shb-button:focus-visible,
.shb-inline-button:focus-visible,
.shb-slider-arrow:focus-visible,
.shb-slider-dots button:focus-visible {
  outline: 3px solid var(--shb-accent-color);
  outline-offset: 3px;
}

/* Slider progress */
.shb-slider-progress {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
}

.shb-slider-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--shb-accent-color);
  transition: width linear;
}

/* Story Video */
.shb-story-video {
  --shb-accent-color: #C6A25A;
  max-width: min(1180px, calc(100% - 40px));
  margin: clamp(40px, 6vw, 90px) auto;
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.shb-story-video.shb-video-split {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
}

.shb-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #111;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
}

.shb-video-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.shb-ratio-4-3 .shb-video-frame::before { padding-top: 75%; }
.shb-ratio-1-1 .shb-video-frame::before { padding-top: 100%; }
.shb-ratio-9-16 .shb-video-frame::before { padding-top: 177.78%; }

.shb-video-frame iframe,
.shb-video-frame video,
.shb-video-frame embed,
.shb-video-frame object {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.shb-video-content h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 0 0 18px;
}

.shb-video-caption {
  color: var(--shb-accent-color);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.shb-video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #222;
}

@media (max-width: 760px) {
  .shb-story-video.shb-video-split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shb-anim-fade-up .shb-content,
  .shb-anim-fade .shb-content,
  .shb-anim-rise-logo .shb-logo-wrap,
  .shb-anim-rise-logo .shb-eyebrow,
  .shb-anim-rise-logo .shb-heading,
  .shb-anim-rise-logo .shb-description,
  .shb-anim-rise-logo .shb-buttons,
  .shb-anim-zoom-slow .shb-image,
  .shb-anim-zoom-slow .shb-video {
    animation: none !important;
  }

  .shb-slider-slide,
  .shb-button,
  .shb-inline-button {
    transition: none !important;
  }
}



/* v1.4.2 full-bleed hardening.
   Some themes constrain the Shortcode block itself, not just the hero inside it.
   These rules and the small JS helper below add a breakout class to the parent wrapper. */
.shb-outer {
  width: 100%;
}

.shb-outer-full-bleed,
.shb-fullbleed-parent {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

.shb-outer-full-bleed > .shb-hero,
.shb-fullbleed-parent > .shb-outer-full-bleed,
.shb-fullbleed-parent > .shb-width-full-bleed,
.shb-fullbleed-parent .shb-width-full-bleed {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.shb-width-full-bleed {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Common WordPress/Blocksy wrappers */
.entry-content > .wp-block-shortcode:has(.shb-outer-full-bleed),
.entry-content > .wp-block-group:has(.shb-outer-full-bleed),
.ct-container-full > .wp-block-shortcode:has(.shb-outer-full-bleed),
.ct-container > .wp-block-shortcode:has(.shb-outer-full-bleed),
.wp-site-blocks .wp-block-shortcode:has(.shb-outer-full-bleed) {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body {
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  body {
    overflow-x: hidden;
  }
}
