/* New Curves Section - Same Klass. New curves. */
.klass-curves-section {
  --curves-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background-color: #ECECEF;
  padding: 90px 20px 80px;
  overflow-x: clip;
}
.klass-curves-container {
  max-width: 1410px;
  margin: 0 auto;
  text-align: center;
  color: #333f48;
}
.klass-curves-section h2.content-title.klass-curves-title {
  text-align: center !important;
  line-height: 1.15;
  margin: 0 0 35px;
  padding: 0 !important;
}
.klass-curves-text {
  max-width: 1330px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #333f48;
}
.klass-curves-outro {
  max-width: 1100px;
}

/* Scroll-in reveal (class added by new-curves.js) */
.klass-curves-section.is-ready .klass-curves-title,
.klass-curves-section.is-ready .klass-curves-text,
.klass-curves-section.is-ready .klass-curves-stage {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--curves-ease), transform 0.9s var(--curves-ease);
}
.klass-curves-section.is-ready .klass-curves-text {
  transition-delay: 0.12s;
}
.klass-curves-section.is-ready .klass-curves-stage {
  transition-delay: 0.22s;
}
.klass-curves-section.is-ready .klass-curves-outro {
  transition-delay: 0.32s;
}
.klass-curves-section.is-ready.is-visible .klass-curves-title,
.klass-curves-section.is-ready.is-visible .klass-curves-text,
.klass-curves-section.is-ready.is-visible .klass-curves-stage {
  opacity: 1;
  transform: none;
}

/* Stage - negative margins trim the empty space baked into the top and bottom of the render */
.klass-curves-stage {
  position: relative;
  container-type: inline-size;
  margin: calc(50px - 6%) auto calc(40px - 6%);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.klass-curves-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Hotspots */
.klass-hotspot {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  z-index: 4;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #00a7b5;
  box-shadow: 0 2px 8px rgba(51, 63, 72, 0.25);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--curves-ease), opacity 0.25s ease, background-color 0.25s ease;
}
/* Larger touch target */
.klass-hotspot::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
}
/* Soft pulse ring */
.klass-hotspot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #00a7b5;
  animation: klass-hotspot-pulse 2.4s var(--curves-ease) infinite;
  pointer-events: none;
}
.klass-hotspot:hover {
  background: #333f48;
  transform: translate(-50%, -50%) scale(1.15);
}
.klass-hotspot:focus-visible {
  outline: 2px solid #94193B;
  outline-offset: 4px;
}
.klass-hotspot.is-active {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}
.klass-curves-stage.is-active .klass-hotspot:not(.is-active) {
  opacity: 0.6;
}
.klass-curves-stage.is-active .klass-hotspot:not(.is-active):hover {
  opacity: 1;
}
@keyframes klass-hotspot-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/*
 * Magnifier lens
 * new-curves.js moves .klass-lens (transform) and the magnified background of .klass-lens-view
 * every frame; CSS only handles the open/close of .klass-lens-body.
 */
.klass-lens {
  --d: 200px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: var(--d);
  height: var(--d);
  pointer-events: none;
  will-change: transform;
}
.klass-lens-body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.22s ease-out, transform 0.28s cubic-bezier(0.4, 0, 1, 1);
  will-change: opacity, transform;
}
.klass-curves-stage.is-active .klass-lens-body {
  opacity: 1;
  transform: scale(1);
  /* Gentle overshoot on open */
  transition: opacity 0.3s ease-out, transform 0.55s cubic-bezier(0.34, 1.35, 0.64, 1);
}
/* Frosted halo */
.klass-lens-body::before {
  content: "";
  position: absolute;
  inset: calc(var(--d) * -0.075);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 30px 60px -24px rgba(51, 63, 72, 0.35);
}
/* Breathing outer ring (only runs while open) */
.klass-lens-body::after {
  content: "";
  position: absolute;
  inset: calc(var(--d) * -0.075);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  animation: klass-lens-breathe 2.8s ease-in-out infinite alternate paused;
}
.klass-curves-stage.is-active .klass-lens-body::after {
  animation-play-state: running;
}
.klass-lens-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background-color: #ECECEF;
  background-repeat: no-repeat;
}
/* Solid white rim */
.klass-lens-view::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: calc(var(--d) * 0.035) solid #ffffff;
  box-shadow: inset 0 0 18px rgba(51, 63, 72, 0.12);
}
@keyframes klass-lens-breathe {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(1.06);
    opacity: 0.25;
  }
}

/* Labels */
.klass-hotspot-label {
  position: absolute;
  z-index: 5;
  text-align: left;
  color: #333f48;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}
.klass-hotspot-label.label-fixed {
  left: 10.5%;
  top: 9%;
}
.klass-hotspot-label.label-adjustable {
  left: 54%;
  top: 31%;
}
.label-kicker {
  display: block;
  font-size: clamp(12px, 1.25cqw, 22px);
  font-weight: 400;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.1s, transform 0.6s var(--curves-ease) 0.1s;
}
.label-title {
  display: block;
  font-size: clamp(20px, 3.3cqw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-8px);
  transition: clip-path 0.8s var(--curves-ease) 0.18s, transform 0.8s var(--curves-ease) 0.18s;
}
.klass-hotspot-label.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.klass-hotspot-label.is-active .label-kicker {
  opacity: 1;
  transform: none;
}
.klass-hotspot-label.is-active .label-title {
  clip-path: inset(0 -2% 0 0);
  transform: none;
}

/* Hint */
.klass-curves-hint {
  position: absolute;
  left: 50%;
  bottom: 15%;
  z-index: 2;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #8a8f93;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
}
.klass-curves-hint .hint-tap {
  display: none;
}
.klass-curves-stage.is-active .klass-curves-hint {
  opacity: 0;
}
@media (hover: none) {
  .klass-curves-hint .hint-hover {
    display: none;
  }
  .klass-curves-hint .hint-tap {
    display: inline;
  }
}

/* Large Desktop (2561px+) */
@media screen and (min-width: 2561px) {
  .klass-curves-section {
    padding: 110px 20px 100px;
  }
  .klass-curves-text {
    font-size: 18px;
  }
}
/* Laptop (1025px - 1440px) */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .klass-curves-section {
    padding: 80px 20px 70px;
  }
  .klass-curves-section h2.content-title.klass-curves-title {
    margin-bottom: 30px;
  }
  .klass-curves-stage {
    margin: calc(40px - 6%) auto calc(30px - 6%);
  }
}
/* Tablet (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .klass-curves-section {
    padding: 70px 15px 60px;
  }
  .klass-curves-section h2.content-title.klass-curves-title {
    margin-bottom: 24px;
  }
  .klass-curves-text {
    font-size: 15px;
    line-height: 1.75;
  }
  .klass-curves-stage {
    margin: calc(30px - 6%) auto calc(25px - 6%);
  }
}
/* Mobile (767px and below): labels move to a caption under the image */
@media screen and (max-width: 767px) {
  .klass-curves-section {
    padding: 60px 15px 50px;
  }
  .klass-curves-section h2.content-title.klass-curves-title {
    margin-bottom: 20px;
  }
  .klass-curves-text {
    font-size: 14px;
    line-height: 1.7;
  }
  .klass-curves-stage {
    margin: calc(20px - 5%) -15px 20px;
    padding-bottom: 30px;
  }
  .klass-hotspot {
    width: 16px;
    height: 16px;
  }
  .klass-hotspot-label.label-fixed,
  .klass-hotspot-label.label-adjustable {
    left: 0;
    right: 0;
    /* Caption sits in the empty floor area under the desks */
    top: 39cqw;
    text-align: center;
  }
  .klass-hotspot-label .label-title br {
    display: none;
  }
  .label-kicker {
    font-size: 12px;
  }
  .label-title {
    font-size: 24px;
  }
  .klass-hotspot-label.is-active .label-title {
    clip-path: inset(0 0 0 0);
  }
  .klass-curves-hint {
    top: 42cqw;
    bottom: auto;
  }
}
/* Small mobile (375px and below) */
@media screen and (max-width: 375px) {
  .label-title {
    font-size: 21px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .klass-curves-section *,
  .klass-curves-section *::before,
  .klass-curves-section *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
