.time-study {
  position: relative;
}
.time-study .hero-stage {
  padding-bottom: 0;
  background: var(--bg-primary, #FFF5D7);
}
.time-study .hero-topbar {
  position: absolute;
  z-index: 3;
  top: calc(18px + env(safe-area-inset-top, 0px));
  left: 50%;
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}
.time-study .hero-site-mark {
  display: block;
  width: min(48vw, 190px);
  line-height: 0;
}
.time-study .hero-site-mark .hero-wordmark {
  width: 100%;
}
.time-study .hero-headline {
  position: absolute;
  z-index: 2;
  top: calc(43% - 40px);
  right: var(--gutter-mobile, 24px);
  left: var(--gutter-mobile, 24px);
  transform: translateY(-50%);
  color: var(--text-inverted, #f4f4f2);
  font: 400 clamp(36px, 10vw, 54px)/1.08 var(--font-serif, serif);
  letter-spacing: -.035em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .36);
  text-align: center;
}
.time-study .hero-wordmark {
  display: block;
  height: auto;
  filter: brightness(0) invert(1);
}
.time-study .hero-stage h1 {
  margin: 0;
  line-height: 1.08;
}
.time-study .hero-site-mark img {
  width: 100%;
  height: auto;
}
.time-study .hero-headline {
  margin: 0;
}
.time-study .hero-state-bar {
  position: relative;
  width: 100%;
  height: 52px;
  background: var(--bg-primary, #FFF5D7);
  color: var(--text-primary, #181818);
  font: 500 12px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  display: none;
}
.time-study .hero-state-card {
  display: grid;
  height: 100%;
  padding: 0 var(--gutter-mobile, 24px);
  align-items: center;
  pointer-events: none;
}
.time-study .hero-state-variant {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  white-space: nowrap;
}
.time-study .hero-state-variant svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.time-study .hero-state-day { opacity: 1; }
.time-study .hero-state-night { opacity: 0; }
.time-study[data-light-state="2"] .hero-state-day { opacity: 0; }
.time-study[data-light-state="2"] .hero-state-night { opacity: 1; }
.time-study.is-ready .hero-state-variant {
  transition: opacity 600ms cubic-bezier(.4, 0, .2, 1);
}
.time-study.is-resetting .hero-state-variant { transition: none; }
.time-study .hero-state-switch {
  position: absolute;
  z-index: 4;
  right: var(--gutter-mobile, 24px);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: var(--gutter-mobile, 24px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid rgba(244, 244, 242, .18);
  border-radius: 7px;
  background: rgba(20, 25, 26, .15);
  -webkit-backdrop-filter: blur(5px) saturate(1.2);
  backdrop-filter: blur(5px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 3px 10px rgba(0, 0, 0, .12), 0 10px 22px rgba(0, 0, 0, .07);
  color: var(--text-inverted, #f4f4f2);
  font: 500 12px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.time-study .hero-state-switch button {
  display: flex;
  min-height: 44px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  opacity: .62;
}
.time-study .hero-state-switch button + button { border-left: 1px solid rgba(244, 244, 242, .16); }
.time-study .hero-state-switch button[aria-pressed="true"] { opacity: 1; }
.time-study .hero-state-switch button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.time-study .hero-state-switch svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.time-study .hero-frame {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0;
}
.time-study .hero-frame::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 55%);
  border-radius: 0;
  pointer-events: none;
  content: "";
}
.time-study .hero-media {
  position: absolute;
  inset: 0;
  opacity: 1;
}
.time-study .hero-media > picture,
.time-study .hero-media > picture > img,
.time-study .hero-media > video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 0;
}
.time-study .hero-media > video {
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.time-study .hero-media.is-playing > video {
  opacity: 1;
}
.time-study .hero-media ~ .hero-media {
  opacity: 0;
}
.time-study.desktop-night-default .hero-media ~ .hero-media {
  opacity: 1;
}
.time-study.is-ready .hero-media ~ .hero-media {
  will-change: opacity;
  transition: opacity 600ms cubic-bezier(.4, 0, .2, 1);
}
.time-study.is-resetting .hero-media ~ .hero-media {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .time-study .hero-media > video {
    display: none;
  }
  .time-study .hero-state-variant { transition: none; }
}
