.hero {
  position: relative;
  background: #061f32;
  isolation: isolate;
}
.hero-grid {
  position: relative;
  z-index: 2;
  direction: rtl;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: clamp(535px, 42vw, 720px);
  padding-block: 35px 62px;
}
.hero-copy {
  position: static;
  padding: 30px 55px 30px 35px;
  min-width: 0;
  z-index: 2;
  direction: rtl;
}
html[dir='ltr'] .hero-copy {
  direction: ltr;
  text-align: left;
}
.hero h1 {
  font-size: clamp(38px, 4vw, 61px);
  line-height: 1.5;
  letter-spacing: -1.5px;
  font-weight: 850;
  margin-bottom: 20px;
}
.hero-description {
  font-size: 14px;
  max-width: 440px;
  line-height: 2;
  color: #c7e0ec;
}
.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 1920px;
  margin: auto;
  z-index: 0;
  display: block;
  overflow: hidden;
  direction: ltr;
}
.hero-visual:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 27%, #061f3233 47%, #061f32d9 72%, #061f32 100%);
}
.hero-visual .hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.025) translateX(-8px);
  opacity: 0;
  transition:
    opacity 1s ease,
    transform 5.5s ease;
  z-index: 0;
}
.hero-visual .hero-slide.is-active {
  opacity: 1;
  transform: scale(1) translateX(0);
  z-index: 1;
}
.hero-controls {
  position: static;
  margin: 0;
  padding: 0;
  gap: 0;
}
.slide-arrows {
  display: contents;
}
.slide-arrows button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid #bedbe680;
  border-radius: 50%;
  background: #113d5775;
  backdrop-filter: blur(10px);
  font:
    300 35px/1 Arial,
    sans-serif;
  color: #f0fbff;
  z-index: 6;
  box-shadow: 0 5px 22px #00152130;
}
.slide-arrows button:hover {
  background: #1d7e967d;
  border-color: #63d9e5;
}
/* Keep chevrons from being mirrored by the surrounding RTL text. */
.slide-arrows button > [aria-hidden],
.journal-controls button > [aria-hidden] {
  direction: ltr;
  unicode-bidi: isolate;
}
.slide-arrows [data-hero-previous] {
  inset-inline-start: -8px;
}
.slide-arrows [data-hero-next] {
  inset-inline-end: -8px;
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  gap: 10px;
  z-index: 6;
}
.hero-dots button {
  width: 8px;
  height: 8px;
  background: #8cb1c5;
  transition:
    width 0.3s,
    background 0.3s;
}
.hero-dots button[aria-pressed='true'] {
  width: 35px;
  background: #57dfec;
}
.hero-slide-note {
  max-width: 345px;
  font-size: 11px;
  color: #a9cedf;
  margin-top: 25px;
}
.hero-progress {
  max-width: 345px;
  height: 2px;
  margin-top: 10px;
  background: #37647b66;
}
.hero.is-playing .hero-progress > span {
  animation-duration: 4.8s;
}
.hero .button {
  min-height: 47px;
  padding-inline: 24px;
}
.hero .eyebrow {
  font-size: 12px;
  color: #77d9e6;
  margin-bottom: 18px;
}
.journal-stage {
  position: relative;
}
.journal-toolbar {
  min-height: 15px;
  margin-bottom: 11px;
}
.journal-position {
  font-size: 11px;
  color: #7296aa;
}
.journal-controls {
  display: contents;
}
.journal-controls button {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  z-index: 6;
  width: 43px;
  height: 43px;
  font:
    300 30px/1 Arial,
    sans-serif;
  background: #ffffffed;
  border: 1px solid #c9dfe9;
  box-shadow: 0 5px 21px #113e5420;
  color: #1a718a;
}
.journal-controls #journal-previous {
  inset-inline-start: -16px;
}
.journal-controls #journal-next {
  inset-inline-end: -16px;
}
.journal-controls button:hover {
  background: #e6f8fc;
}
.journal-grid {
  scrollbar-width: none;
}
.journal-grid::-webkit-scrollbar {
  display: none;
}
.journal-feature {
  border-radius: 20px;
  box-shadow: 0 20px 40px #143c5012;
}
.journal-feature-copy {
  padding: 35px 44px;
}
.journal-feature-copy h3 {
  font-size: 34px;
}
.journal-card {
  box-shadow: 0 5px 25px #173c5009;
}
.journal-card .journal-body {
  padding: 23px;
}
.quote-section {
  padding-block: 55px;
}
.quote-grid h2 {
  font-size: 37px;
}
.assistant-toggle {
  box-shadow: 0 7px 25px #0a344e38;
}
@media (min-width: 1920px) {
  .hero-visual {
    mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  }
}
@media (max-width: 1050px) {
  .hero-grid {
    min-height: 510px;
  }
  .hero-copy {
    padding-inline: 37px 18px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-description {
    font-size: 12px;
  }
  .hero .button {
    padding-inline: 17px;
    font-size: 12px;
  }
  .slide-arrows [data-hero-previous] {
    inset-inline-start: -4px;
  }
  .slide-arrows [data-hero-next] {
    inset-inline-end: -4px;
  }
}
@media (max-width: 700px) {
  .hero-grid {
    display: block;
    width: 100%;
    min-height: 0;
    padding: clamp(230px, 60vw, 410px) 0 48px;
    direction: inherit;
  }
  .hero-copy {
    position: relative;
    z-index: 3;
    padding: 21px 25px 10px;
    background: linear-gradient(#061f32f5, #061f32);
    text-align: center;
    direction: inherit;
  }
  .hero-visual {
    inset: 0 0 auto;
    height: clamp(250px, 66vw, 435px);
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
  }
  .hero-visual .hero-slide {
    object-position: 26% 52%;
    object-fit: cover;
    width: 148%;
    max-width: none;
    inset-inline-start: -2%;
  }
  .hero-visual:after {
    background: linear-gradient(0deg, #061f32, transparent 32%);
    inset: 0;
  }
  .hero h1 {
    font-size: 38px;
    line-height: 1.47;
    margin-bottom: 15px;
    letter-spacing: -1px;
  }
  .hero-description {
    max-width: 370px;
    font-size: 12px;
    line-height: 1.95;
    margin-bottom: 22px;
  }
  .hero .eyebrow {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .hero .button {
    font-size: 11px;
    min-height: 43px;
    padding-inline: 15px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-slide-note,
  .hero-progress {
    max-width: 285px;
    margin-inline: auto;
  }
  .hero-slide-note {
    font-size: 10px;
    margin-top: 23px;
  }
  .hero-progress {
    margin-top: 9px;
  }
  .hero-dots {
    bottom: 16px;
  }
  .slide-arrows button {
    top: calc(clamp(250px, 66vw, 435px) / 2);
    width: 38px;
    height: 38px;
    font-size: 28px;
  }
  .slide-arrows [data-hero-previous] {
    inset-inline-start: 12px;
  }
  .slide-arrows [data-hero-next] {
    inset-inline-end: 12px;
  }
  .hero-controls {
    position: static;
  }
  .hero-grid .slide-arrows {
    display: contents;
  }
  .hero-copy {
    position: static;
  }
  .hero-copy > .eyebrow {
    position: relative;
  }
  .hero .slide-arrows button {
    position: absolute;
    display: grid;
  }
  .journal-feature {
    border-radius: 14px;
  }
  .journal-feature-copy {
    padding: 24px;
  }
  .journal-feature-copy h3 {
    font-size: 27px;
  }
  .journal-card .journal-body {
    padding: 18px;
  }
  .journal-controls button {
    width: 35px;
    height: 35px;
    font-size: 26px;
    top: 42%;
  }
  .journal-controls #journal-previous {
    inset-inline-start: -7px;
  }
  .journal-controls #journal-next {
    inset-inline-end: -7px;
  }
  .quote-section {
    padding-block: 35px;
  }
  .quote-grid h2 {
    font-size: 29px;
  }
  .hero-copy p,
  .hero-copy h1,
  .hero-actions,
  .hero-slide-note,
  .hero-progress {
    position: relative;
    z-index: 3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual .hero-slide {
    transition: none;
    transform: none;
  }
  .hero.is-playing .hero-progress > span {
    animation: none;
  }
}
