:root {
  --standards-gold: #B8924A;
  --standards-bg: oklch(0.985 0.006 80);
  --standards-ink: oklch(0.14 0.010 60);
  --standards-ink-mid: oklch(0.38 0.010 65);
  --standards-ink-muted: oklch(0.58 0.010 65);
  --standards-border: oklch(0.86 0.008 70);
}

.elementor-widget-our_standards_widget,
.elementor-widget-our_standards_widget .elementor-widget-container,
.elementor-section:has(.tbe-os-outer),
.elementor-container:has(.tbe-os-outer),
.e-con:has(.tbe-os-outer) {
  height: 100%;
  overflow: visible !important;
}

.tbe-os-outer {
  height: 300vh;
  position: relative;
}

/* Widget Scoped UL/LI Reset */
.tbe-os-outer ul,
.tbe-os-outer ol,
.tbe-os-outer li,
.elementor-widget-our_standards_widget ul,
.elementor-widget-our_standards_widget ol,
.elementor-widget-our_standards_widget li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tbe-os-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--standards-bg);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.tbe-os-grid {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  align-self: stretch;
  padding-left: clamp(24px, 5vw, 80px);
  padding-right: clamp(24px, 5vw, 80px);
  padding-top: 0;
  padding-bottom: 0;
  gap: clamp(24px, 4vw, 56px);
  box-sizing: border-box;
}

.tbe-os-image-container {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  height: 100%;
  min-height: 100%;
  width: 100%;
  align-self: stretch;
  order: 1;
}

.tbe-os-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity;
  transform: translateZ(0);
}

.tbe-os-img.active {
  opacity: 1;
}

.tbe-os-content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 96px);
  order: 2;
  box-sizing: border-box;
}

.tbe-os-eyebrow-wrapper {
  margin-bottom: 28px;
  min-height: 16px;
}

.tbe-os-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--standards-gold);
  margin: 0;
  transition: opacity 0.4s ease;
}

.tbe-os-headline-wrapper {
  position: relative;
  min-height: clamp(70px, 8vw, 110px);
  margin-bottom: 18px;
}

.tbe-os-headline {
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
  color: var(--standards-ink);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.23, 1, 0.32, 1), transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  margin: 0;
  width: 100%;
}

.tbe-os-headline.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tbe-os-body-wrapper {
  position: relative;
  min-height: clamp(140px, 14vw, 200px);
  margin-bottom: 32px;
}

.tbe-os-body {
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--standards-ink-mid);
  line-height: 1.75;
  max-width: 480px;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.23, 1, 0.32, 1) 0.08s;
  pointer-events: none;
  margin: 0;
  width: 100%;
}

.tbe-os-body.active {
  opacity: 1;
  pointer-events: auto;
}

.tbe-os-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tbe-os-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.tbe-os-tab-dash {
  width: 16px;
  height: 1px;
  background: var(--standards-border);
  flex-shrink: 0;
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s ease;
}

.tbe-os-tab.active .tbe-os-tab-dash {
  width: 28px;
  background: var(--standards-gold);
}

.tbe-os-tab-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--standards-ink-muted);
  font-weight: 400;
  transition: color 0.3s ease;
}

.tbe-os-tab.active .tbe-os-tab-label {
  color: var(--standards-ink);
  font-weight: 500;
}

.tbe-os-dots {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.tbe-os-dot {
  width: 6px;
  height: 2px;
  background: var(--standards-border);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s ease;
}

.tbe-os-dot.active {
  width: 20px;
  background: var(--standards-gold);
}

@media (max-width: 768px) {
  .tbe-os-grid {
    flex-direction: column;
    overflow-y: auto;
    padding-top: 0;
  }
  .tbe-os-image-container {
    min-height: 45vh;
    height: 45vh;
    flex: 0 0 auto;
  }
  .tbe-os-content {
    padding-top: 24px;
    padding-bottom: 48px;
    flex: 0 0 auto;
  }
}
