/* Original Rite-Kem artwork, with no redraw or recoloring. */
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}
.brand img {
  display: block;
  width: 190px;
  height: auto;
  object-fit: contain;
}
footer .brand img {
  width: 220px;
}
.header {
  padding-top: 23px;
  padding-bottom: 23px;
}
.hero-motion {
  min-height: 665px;
  isolation: isolate;
  background: #f0f5fb;
  align-items: center;
}
.hero-motion:after {
  z-index: 0;
  background: linear-gradient(90deg, #f2f6fb 0%, #f2f6bf00 83%);
  pointer-events: none;
}
.liquid-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background: #edf3fa;
}
.hero-motion .hero-art {
  width: 85%;
  height: 112%;
  top: -4%;
  right: -8%;
  object-fit: cover;
  object-position: 70% 50%;
  transform-origin: 75% 65%;
  animation: liquid-breathe 18s ease-in-out infinite alternate;
  transition:
    filter 2.5s ease,
    object-position 3s ease;
}
.hero-motion[data-scene="1"] .hero-art {
  filter: saturate(0.8) brightness(1.035);
  object-position: 65% 58%;
}
.hero-motion[data-scene="2"] .hero-art {
  filter: saturate(1.15) brightness(0.96);
  object-position: 78% 45%;
}
.liquid-light {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    transparent 42%,
    #ffffff38 55%,
    transparent 68%
  );
  mix-blend-mode: screen;
  animation: liquid-light 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-motion .hero-content {
  z-index: 2;
  margin: 58px 6% 38px;
  width: 700px;
  max-width: 61%;
}
.hero-copy {
  height: 303px;
  transition:
    opacity 0.28s ease,
    transform 0.38s cubic-bezier(0.2, 0.65, 0.3, 1),
    filter 0.3s ease;
  will-change: opacity, transform;
}
.hero-copy.is-changing {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
}
.hero-motion h1 {
  font-size: clamp(2.8rem, 4.5vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -0.057em;
  line-height: 1.12;
  margin: 0 0 25px;
}
.hero-motion h1 .hero-line {
  display: block;
  white-space: nowrap;
  color: var(--ink);
}
.hero-motion h1 .hero-accent {
  color: var(--blue);
}
.hero-motion .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  margin-bottom: 23px;
}
.hero-motion p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 445px;
  margin: 0;
  text-wrap: pretty;
  color: #526176;
}
.hero-motion .actions {
  margin: 0;
  min-height: 54px;
}
.hero-motion .btn {
  min-width: 205px;
  justify-content: space-between;
}
.hero-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 48px;
  width: 415px;
  max-width: 100%;
}
.hero-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  flex: 1;
}
.hero-tab {
  padding: 10px 0;
  text-align: left;
  font-size: 0.85rem;
  color: #687588;
  font-weight: 500;
}
.hero-tab.is-current {
  color: var(--ink);
}
.hero-tab-label {
  display: block;
  margin-bottom: 12px;
}
.hero-track {
  height: 2px;
  background: #cbd5e3;
  display: block;
  overflow: hidden;
  border-radius: 10px;
}
.hero-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
}
.hero-tab.is-current .hero-track > span {
  width: var(--progress, 0%);
}
.is-paused .hero-tab.is-current .hero-track {
  background: #a1b9e0;
}
.hero-tab.is-current .hero-tab-label:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--blue);
}
.hero-pause {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid #bac9dd;
  border-radius: 50%;
  color: #344867;
  background: #ffffff88;
}
.hero-pause:hover {
  background: white;
  border-color: #7c9ecc;
}
.hero-pause svg {
  width: 18px;
  height: 18px;
}
.hero-glass {
  position: absolute;
  bottom: 42px;
  right: 5%;
  z-index: 2;
  width: 340px;
  max-width: 34%;
  padding: 20px 23px;
  background: #ffffffbb;
  border: 1px solid #ffffffa6;
  backdrop-filter: blur(18px);
  border-radius: 14px;
  box-shadow: 0 8px 35px #0732700a;
}
.hero-glass-top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #406084;
  margin-bottom: 10px;
}
#hero-caption-text {
  font-size: 0.92rem;
  line-height: 1.5;
  display: block;
  color: #1d3656;
  letter-spacing: -0.015em;
}
.is-paused .hero-art,
.is-paused .liquid-light {
  animation-play-state: paused;
}
@keyframes liquid-breathe {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.075) translate3d(-1.8%, -1.5%, 0);
  }
}
@keyframes liquid-light {
  0% {
    transform: translateX(-15%);
    opacity: 0.15;
  }
  100% {
    transform: translateX(15%);
    opacity: 0.65;
  }
}
@media (min-width: 1600px) {
  .hero-motion {
    min-height: 720px;
  }
  .hero-motion .hero-content {
    margin-left: 8%;
    width: 780px;
  }
  .hero-motion h1 {
    font-size: 4.8rem;
  }
  .hero-copy {
    height: 320px;
  }
  .hero-glass {
    right: 7%;
    bottom: 48px;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .brand img {
    width: 155px;
  }
  .hero-motion .hero-content {
    max-width: 75%;
    width: 650px;
  }
  .hero-motion h1 {
    font-size: 3.5rem;
  }
  .hero-motion .hero-art {
    right: -20%;
    width: 100%;
  }
  .hero-motion:after {
    background: linear-gradient(
      90deg,
      #f2f6fb 0%,
      #f2f6fbe0 25%,
      transparent 100%
    );
  }
  .hero-glass {
    max-width: 31%;
    width: 280px;
    bottom: 35px;
  }
  .hero-controls {
    width: 385px;
  }
  .hero-motion p {
    max-width: 410px;
  }
  .hero-copy {
    height: 305px;
  }
}
@media (max-width: 760px) {
  .header {
    padding: 17px 5% 12px;
  }
  .brand img {
    width: 145px;
  }
  footer .brand img {
    width: 190px;
  }
  .hero-motion {
    min-height: 810px;
    align-items: flex-start;
  }
  .hero-motion .hero-content {
    margin: 40px 6% 0;
    width: 88%;
    max-width: none;
  }
  .hero-motion .hero-art {
    top: auto;
    bottom: -8%;
    right: -13%;
    height: 58%;
    width: 120%;
    object-position: 70% 60%;
  }
  .hero-motion:after {
    background: linear-gradient(
      180deg,
      #f2f6fb 0%,
      #f2f6fb 39%,
      #f2f6fb44 65%,
      transparent 82%
    );
  }
  .hero-motion .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.09em;
    margin-bottom: 20px;
  }
  .hero-motion h1 {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    line-height: 1.16;
    letter-spacing: -0.055em;
    margin-bottom: 21px;
  }
  .hero-copy {
    height: 258px;
  }
  .hero-motion p {
    font-size: 0.91rem;
    line-height: 1.7;
    max-width: 440px;
  }
  .hero-motion .actions {
    gap: 18px;
    min-height: 50px;
  }
  .hero-motion .btn {
    padding: 14px 18px;
    font-size: 0.85rem;
    min-width: 185px;
  }
  .hero-motion .text-link {
    font-size: 0.85rem;
  }
  .hero-controls {
    margin-top: 29px;
    gap: 16px;
    width: 100%;
  }
  .hero-tabs {
    gap: 16px;
  }
  .hero-tab {
    font-size: 0.8rem;
  }
  .hero-glass {
    bottom: 35px;
    right: 6%;
    width: 88%;
    max-width: none;
    padding: 16px 19px;
    background: #ffffffe0;
  }
  .hero-glass-top {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }
  #hero-caption-text {
    font-size: 0.85rem;
  }
}
@media (max-width: 380px) {
  .brand img {
    width: 124px;
  }
  .header {
    gap: 9px;
  }
  .nav-actions {
    gap: 8px;
  }
  .hero-motion {
    min-height: 800px;
  }
  .hero-motion .hero-content {
    margin-top: 33px;
  }
  .hero-motion .eyebrow {
    font-size: 0.62rem;
  }
  .hero-copy {
    height: 255px;
  }
  .hero-motion h1 {
    font-size: 7.9vw;
  }
  .hero-motion p {
    font-size: 0.88rem;
    max-width: none;
  }
  .hero-motion .actions {
    gap: 12px;
  }
  .hero-motion .btn {
    min-width: 172px;
    padding: 13px 16px;
    font-size: 0.79rem;
  }
  .hero-motion .text-link {
    font-size: 0.78rem;
    gap: 8px;
  }
  .hero-controls {
    margin-top: 27px;
  }
  .hero-tab {
    font-size: 0.75rem;
  }
  .hero-pause {
    width: 32px;
    height: 32px;
  }
  .hero-glass {
    bottom: 47px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-motion .hero-art,
  .liquid-light {
    animation: none !important;
  }
  .hero-copy,
  .hero-motion .hero-art {
    transition: none !important;
  }
  .hero-copy.is-changing {
    transform: none;
    filter: none;
  }
}
.header .brand img {
  max-width: 100%;
}
@media (max-width: 760px) {
  .header .brand img {
    width: 125px;
  }
  .header .nav-actions {
    gap: 8px;
  }
  .header .portal-link span {
    margin-left: 6px;
  }
  .header .brand {
    max-width: 38%;
  }
}
@media (max-width: 360px) {
  .header .brand img {
    width: 110px;
  }
  .header .portal-link span {
    display: none;
  }
  .header .nav-actions {
    gap: 6px;
  }
  .header .portal-link {
    padding: 8px 9px;
  }
}
