/* Bento, the Daybreak minute and the photo rail. */

/* Inside: bento */
.inside {
  position: relative;
  z-index: 1;
  padding: clamp(90px, 14vh, 170px) var(--gutter) clamp(90px, 13vh, 160px);
  background: var(--void);
}
.inside > .display {
  margin-bottom: clamp(44px, 7vh, 88px);
  text-align: center;
}
.bento {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 2fr);
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 44px;
}
.card h3 {
  font-size: clamp(27px, 2.7vw, 42px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.card-window {
  overflow: hidden;
}
.card-window img {
  width: 100%;
  height: auto;
}

.card-memory {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.2vw, 50px) clamp(10px, 0.8vw, 12px) 10px;
  color: var(--day-ink);
  background: var(--day);
  --hue: #0a6cf0;
}
.card-memory > :not(.card-window) {
  margin-inline: clamp(16px, 2.4vw, 38px);
}
.card-memory h3 {
  margin: 22px 0 16px;
}
.card-memory > p:not(.eyebrow) {
  max-width: 340px;
  color: var(--day-ink-2);
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.025em;
}
.card-memory .card-window {
  flex: 1;
  min-height: 380px;
  margin-top: clamp(26px, 4vh, 44px);
  padding: 34px 9% 0;
  border-radius: 36px;
  background: linear-gradient(#a9d8f6, #d9eefc);
}
.card-memory .card-window img {
  border-radius: 30px 30px 0 0;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.6), 0 30px 60px -20px rgba(20, 60, 110, 0.45);
}

.card-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(380px, 38vw, 520px);
  padding: 10px;
  background: linear-gradient(135deg, #1672ff, #0a63ee 60%, #4a52f0);
  --hue: rgba(255, 255, 255, 0.82);
}
.card-plan .card-window {
  position: relative;
  border-radius: 36px;
  background: #05060d;
}
.card-plan .card-window img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
.card-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(24px, 3vw, 46px);
}

.card-calm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  padding: 10px;
  background: #101118;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  --hue: var(--mint);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 34px);
  border-radius: 36px;
  background: #07080d;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 20px;
  border-radius: 18px;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.chips i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}

/* Daybreak is pinned while the dark section slides over it. */
.cover {
  position: relative;
  z-index: 1;
}
.daybreak {
  position: sticky;
  top: var(--stick, 0px);
  padding: clamp(110px, 17vh, 200px) 0 clamp(120px, 16vh, 190px);
  color: var(--day-ink);
  text-align: center;
  background: var(--day);
  --hue: #0a6cf0;
}
.giant {
  margin: 10px 0 0;
  font-size: clamp(64px, 14.6vw, 250px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
}
.rhythm {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 4vw, 64px);
  margin-top: clamp(18px, 3vh, 34px);
  padding: 0 var(--gutter);
}
.rhythm > i {
  width: 1px;
  height: 46px;
  background: rgba(10, 11, 20, 0.14);
}
.rhythm div {
  display: grid;
  gap: 3px;
}
.rhythm strong {
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.rhythm span {
  color: var(--day-ink-2);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.marquee {
  margin-top: clamp(56px, 9vh, 104px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 6px 0 26px 20px;
  animation: marquee 64s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  /* Keyboard focus pauses it too (website audit W-6). */
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  width: min(500px, 82vw);
  min-height: 268px;
  padding: 38px 36px 30px;
  border-radius: 40px;
  text-align: left;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(10, 11, 20, 0.07), 0 18px 34px -24px rgba(10, 11, 20, 0.25);
}
.note p {
  font-size: clamp(19px, 1.5vw, 22.5px);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -0.038em;
}
.note footer {
  color: #9aa0b5;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.marquee-caption {
  color: #9aa0b5;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Full lives */
.outcomes {
  position: relative;
  z-index: 2;
  padding: clamp(84px, 12vh, 130px) 0 clamp(90px, 13vh, 150px);
  border-radius: clamp(40px, 6vw, 96px) clamp(40px, 6vw, 96px) 0 0;
  text-align: center;
  background: #06070c;
  --hue: var(--mint);
  box-shadow: 0 -30px 80px -20px rgba(10, 11, 20, 0.35);
}
.outcomes > .display {
  margin-top: 22px;
}
.rail {
  display: flex;
  gap: 20px;
  margin-top: clamp(44px, 7vh, 84px);
  padding: 0 max(var(--gutter), calc(50% - 750px));
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: max(var(--gutter), calc(50% - 750px));
  scrollbar-width: none;
  cursor: grab;
  outline-offset: -4px;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.scene {
  position: relative;
  flex: 0 0 min(560px, 84vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  height: clamp(440px, 58vh, 540px);
  padding: clamp(28px, 3vw, 46px);
  overflow: hidden;
  border-radius: 44px;
  text-align: left;
  scroll-snap-align: start;
  isolation: isolate;
  user-select: none;
}
.scene::before,
.scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}
.scene::before {
  background: var(--img) center / cover;
  transition: transform 1.6s var(--ease);
}
.scene::after {
  background: linear-gradient(rgba(4, 5, 10, 0.62) 0%, rgba(4, 5, 10, 0.1) 46%, rgba(4, 5, 10, 0.5) 100%);
}
.scene:hover::before {
  transform: scale(1.05);
}
.scene h3 {
  max-width: 420px;
  font-size: clamp(27px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.glass-ui {
  align-self: stretch;
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border-radius: 26px;
  background: rgba(14, 16, 26, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.ui-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 246, 255, 0.72);
}
.ui-line {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.ui-list {
  display: grid;
  gap: 8px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.ui-list li {
  display: flex;
  gap: 14px;
}
.ui-list b {
  width: 34px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 25px;
  text-transform: uppercase;
  color: var(--cyan);
}
.ui-bars {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 34px;
}
.ui-bars i {
  width: 9px;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(var(--mint), var(--cyan));
}
.ui-bars i.rest {
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
}

.rail-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.rail-nav button {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s ease, opacity 0.25s ease, transform 0.3s var(--ease);
}
.rail-nav button:hover {
  background: rgba(255, 255, 255, 0.16);
}
.rail-nav button:active {
  transform: scale(0.94);
}
.rail-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}
.rail-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    border-radius: 36px;
  }
  .card-memory .card-window {
    max-height: 440px;
  }
  .card-plan,
  .card-calm {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-plan .card-window {
    height: 360px;
  }
  .card-plan .card-copy {
    order: -1;
  }
  .chips {
    justify-content: flex-start;
  }
  .chips li {
    padding: 12px 16px;
    font-size: 15px;
  }
  .rhythm {
    flex-direction: column;
    gap: 16px;
  }
  .rhythm > i {
    width: 46px;
    height: 1px;
  }
  .note {
    min-height: 230px;
    padding: 30px 28px 24px;
    border-radius: 32px;
  }
  .scene {
    border-radius: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
  }
  .marquee-track {
    animation: none;
  }
  .scene::before {
    transition: none;
  }
}
