/* Full-width editorial photographs and a separate layer for scroll motion. */
.scene {
  --scene-base: #211910;
  --scene-low: #39291b;
  --scene-light: #f0cfaa;
  --scene-image-x: 50%;
  --scene-image-y: 40%;
  --scene-image-height: 100%;
  --scene-wash: linear-gradient(90deg, rgba(23, 17, 12, .9), rgba(23, 17, 12, .63) 40%, rgba(23, 17, 12, .07) 72%);
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 85% 110%, var(--scene-low), transparent 64%), var(--scene-base);
  color: #fffaf2;
}

.scene-photo {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: var(--scene-image-height);
  overflow: hidden;
  pointer-events: none;
}

.scene-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--scene-image-x) var(--scene-image-y);
}

.scene-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 16, 13, .18), transparent 28%, transparent 54%, var(--scene-base) 100%), var(--scene-wash);
}

.scene-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 250, 242, .14);
  pointer-events: none;
}

.scene-progress::before {
  content: "";
  display: block;
  height: 100%;
  background: var(--scene-light);
  transform-origin: left;
}

.scene > .band__inner {
  width: min(100%, 1180px);
}

.scene .eyebrow,
.scene .lead,
.scene .assistant-intro__status,
.scene .clinic-flow dd {
  color: #f1e4d3;
}

.scene .section-text-link {
  color: #fff7eb;
}

.scene :focus-visible {
  outline-color: #f0d9bd;
}

.scene--assistant {
  --scene-base: #211811;
  --scene-low: #38291d;
  --scene-image-y: 20%;
}

.scene--assistant .assistant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  padding-top: clamp(18px, 9vw - 68px, 64px);
}

.scene--assistant .assistant-grid > * {
  width: min(100%, 530px);
}

.scene h2:not(#workoutsTitle) {
  font-size: clamp(2rem, 5vw, 4rem);
}

.scene--assistant .assistant-demo {
  --card: #f8f1e7;
  --bg: #fffbf4;
  --bg-2: #ebe0d2;
  --ink: #241f1a;
  --ink-2: #625241;
  --accent: #77563e;
  --accent-ink: #fff;
  --line: rgba(60, 50, 40, .19);
  color: var(--ink);
  background: #f8f1e7;
  box-shadow: 0 22px 56px rgba(13, 9, 6, .25);
  color-scheme: light;
}

.scene--assistant .assistant-demo :focus-visible {
  outline-color: var(--accent);
}

.scene--health {
  --scene-base: #232a21;
  --scene-low: #354134;
  --scene-light: #cbd9a4;
  --scene-image-height: min(100%, 800px);
  --scene-image-y: 25%;
  --scene-wash: linear-gradient(90deg, rgba(22, 31, 23, .95), rgba(22, 31, 23, .73) 36%, rgba(22, 31, 23, .04) 69%);
}

.scene--health .limits-heading-grid {
  display: block;
  min-height: clamp(200px, 24vw, 340px);
}

.scene--health .section-head {
  max-width: 525px;
}

#health.scene--health .limits-controls,
#health.scene--health .verdict-big {
  background: rgba(34, 42, 34, .94);
  border-color: rgba(225, 236, 214, .28);
}

.scene--clinic {
  --scene-base: #292019;
  --scene-low: #453427;
  --scene-light: #ded0ad;
  --scene-image-y: 37%;
  --scene-wash: linear-gradient(270deg, rgba(35, 26, 19, .93), rgba(35, 26, 19, .73) 38%, rgba(35, 26, 19, .04) 69%);
}

.scene--clinic .clinic-grid {
  min-height: clamp(510px, 45vw, 670px);
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  gap: 20px clamp(32px, 6vw, 100px);
  align-content: center;
}

.scene--clinic .clinic-grid > * {
  grid-column: 2;
}

.scene--clinic .clinic-flow {
  --connector: rgba(237, 211, 181, .72);
  position: relative;
  padding-left: 18px;
  margin: 0;
}

.scene--clinic .clinic-flow::before {
  content: "";
  position: absolute;
  inset: 24px auto 24px 0;
  width: 1px;
  background: var(--connector);
  transform-origin: top;
}

.scene--clinic .clinic-flow div {
  position: relative;
  border-color: rgba(248, 231, 211, .29);
}

.scene--clinic .clinic-flow div::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 23px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2d8af;
  box-shadow: 0 0 0 3px var(--scene-base);
}

.scene--workouts {
  --scene-base: #221c16;
  --scene-image-y: 15%;
  --scene-wash: linear-gradient(90deg, rgba(23, 17, 12, .7), rgba(23, 17, 12, .36) 55%, transparent 85%);
  min-height: min(92svh, 1040px);
  align-content: end;
  gap: clamp(26px, 5vw, 55px);
}

.scene--workouts .scene-photo img { transform-origin: 73% top; }

.scene--workouts .photo-copy {
  max-width: 1180px;
  margin-bottom: 0;
}

.scene-workout-copy {
  display: grid;
  max-width: 690px;
  gap: 14px;
}

.scene--workouts .hero__actions {
  animation: none;
}

.scene--workouts .hero__actions .btn,
.scene--workouts .claim {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scene--workouts .hero__actions .btn--outline-light,
.scene--workouts .claim {
  background: rgba(50, 42, 34, .86);
}

.scene--workouts .claim:hover {
  background: #473a2e;
}

.scene--nutrition {
  --scene-base: #282115;
  --scene-low: #403422;
  --scene-light: #efe3a8;
  --scene-image-y: 22%;
  --scene-image-height: min(100%, 780px);
  --scene-wash: linear-gradient(90deg, rgba(32, 25, 15, .93), rgba(32, 25, 15, .66) 44%, rgba(32, 25, 15, .13) 76%);
}

.scene--nutrition .split--photo {
  align-items: start;
}

.scene--nutrition .glass {
  background: rgba(45, 37, 25, .94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#health .scene-photo,
#clinic .scene-photo,
#nutrition .scene-photo {
  mask-image: linear-gradient(#000 65%, transparent);
}

#health .verdict-big__tier {
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.1;
}

#nutrition .scanner h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

#nutrition .calc__method {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 250, 242, .22);
  font-size: .88rem;
}

#nutrition .calc__method summary {
  width: fit-content;
  padding-block: 6px;
  cursor: pointer;
}

#nutrition .calc__method p {
  margin-top: 6px;
}

@media (max-width: 759px) {
  #nutrition.scene.scene--nutrition {
    padding-top: clamp(200px, 52vw, 300px);
    --scene-image-height: clamp(290px, 75vw, 400px);
    --scene-image-x: 50%;
  }
}

#sports, #together, #avatar, #download {
  position: relative;
  isolation: isolate;
}

#sports, #together {
  background:
    radial-gradient(ellipse at 84% -10%, rgba(185, 145, 102, .19), transparent 55%),
    radial-gradient(ellipse at 12% 105%, rgba(141, 154, 119, .18), transparent 53%),
    var(--bg-2);
}

#avatar, #download {
  background:
    radial-gradient(ellipse at 78% 13%, rgba(181, 145, 105, .19), transparent 55%),
    radial-gradient(ellipse at 14% 90%, rgba(141, 154, 119, .17), transparent 52%),
    var(--bg);
}

.scene-scroll {
  position: absolute;
  display: grid;
  place-items: center;
  inset: auto 0 20px;
  margin-inline: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 250, 242, .58);
  border-radius: 50%;
  background: rgba(29, 24, 19, .48);
  color: #fffaf2;
  text-decoration: none;
  font-size: 1.2rem;
}
.scene-scroll:hover { background: rgba(29, 24, 19, .82); }

@media (prefers-reduced-motion: no-preference) {
  .assistant-demo__topics button, #health #limitChips button {
    transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
  }

  .assistant-demo__topics button:active, #health #limitChips button:active {
    transform: scale(.97);
  }

  .scenes-motion [data-scene-reveal] {
    transition: opacity .62s ease, translate .78s cubic-bezier(.19, .7, .29, 1);
  }

  .scenes-motion [data-scene-reveal]:not(.is-scene-visible):not(:focus-within) {
    opacity: 0;
    translate: 0 30px;
  }

  .scenes-motion [data-scene-reveal="panel"] {
    transition-delay: 90ms;
  }

  .scenes-motion .sports-grid > :nth-child(2),
  .scenes-motion .claims > :nth-child(2),
  .scenes-motion .clinic-flow > :nth-child(2) { transition-delay: 150ms; }

  .scenes-motion .sports-grid > :nth-child(3),
  .scenes-motion .claims > :nth-child(3),
  .scenes-motion .clinic-flow > :nth-child(3) { transition-delay: 235ms; }

  .scenes-motion .scene-photo img {
    transform: translate3d(0, var(--scene-drift, 0px), 0) scale(calc(1.16 - .09 * var(--scene-progress, 0)));
  }

  .scenes-motion .scene-progress::before {
    transform: scaleX(var(--scene-progress, 0));
  }

  .scenes-motion .scene--clinic .clinic-flow::before {
    transform: scaleY(0);
    transition: transform .8s cubic-bezier(.19, .7, .29, 1) .16s;
  }

  .scenes-motion .scene--clinic .clinic-flow.is-scene-visible::before {
    transform: scaleY(1);
  }

  .scenes-motion .scene-scroll span {
    translate: 0 calc(10px * var(--scene-progress, 0));
    transition: translate .2s ease;
  }
}

@media (max-width: 759px) {
  .scene {
    --scene-image-height: clamp(335px, 81vw, 520px);
    --scene-image-y: 30%;
    --scene-wash: linear-gradient(0deg, rgba(16, 15, 11, .13), transparent 77%);
    padding-top: clamp(232px, 63vw, 405px);
  }
  .scene-photo::after {
    background: linear-gradient(180deg, rgba(17, 16, 13, .11), transparent 30%, rgba(19, 18, 14, .26) 57%, var(--scene-base) 100%), var(--scene-wash);
  }

  .scene--assistant .assistant-grid { padding-top: 0; }
  .scene--health .limits-heading-grid { min-height: 0; }
  .scene--clinic .clinic-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .scene--clinic .clinic-grid > * { grid-column: 1; }
  .scene--workouts { --scene-image-x: 89%; --scene-image-y: top; min-height: 0; }
  .scene--nutrition { --scene-image-x: 70%; }
  .hero__content { padding-bottom: max(76px, env(safe-area-inset-bottom)); }
  .scene-scroll { bottom: 16px; }
}

@media (forced-colors: active) {
  .scene-photo { display: none; }
  .scene { color: CanvasText; background: Canvas; }
  .scene--clinic .clinic-flow div::before { forced-color-adjust: none; background: CanvasText; }
}
