/* Horizontal photography for the eight Life tools and two Together screens. */
#pageHeading.has-section-scene .page-heading{
  position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:flex-end;
  min-height:clamp(244px,25vw,330px);padding:34px 36px;margin-bottom:12px;
  border:1px solid var(--line2);border-radius:14px;background:#0d1011;
}
.section-scene-image{position:absolute;inset:0;z-index:-3;pointer-events:none;display:block}
.section-scene-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--scene-position,70% 50%)}
.section-visual-heading::before{content:'';position:absolute;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(90deg,#090b0cf5 0%,#090b0ce0 31%,#090b0c88 54%,#090b0c08 80%),linear-gradient(0deg,#090b0c99,transparent 60%)}
.section-visual-heading::after{content:'';position:absolute;bottom:0;left:36px;width:62px;height:3px;background:var(--acc);pointer-events:none}
.section-visual-copy{position:relative;flex:1;min-width:0;max-width:620px;padding:12px 0}
#pageHeading .section-visual-heading .eyebrow{color:var(--acc);font-size:10px;letter-spacing:.17em;margin-bottom:15px}
#pageHeading .section-visual-heading h1{font-size:clamp(38px,4.5vw,66px);line-height:1.02;max-width:580px;text-wrap:balance;color:#f7f8f3;margin:0 0 12px}
#pageHeading .section-visual-heading p{max-width:410px;font-size:13px;line-height:1.7;color:#d2d7d5;margin:0;text-wrap:pretty}
.section-visual-heading .heading-actions{position:relative;flex-shrink:0;align-self:flex-end;padding-bottom:12px}
.section-visual-heading .heading-actions .btn{background:#101415ed;border-color:#ffffff3d;color:#f7f8f3;backdrop-filter:blur(8px)}
.section-visual-heading .heading-actions .btn:hover{border-color:var(--acc);color:var(--acc)}
/* One main photograph per page; the workout intro remains a compact action card. */
#s-gym .training-workspace>.training-heading,#s-running .training-workspace>.training-heading{min-height:0;padding:24px}
#s-gym .training-workspace>.training-heading::before,#s-gym .training-workspace>.training-heading::after,
#s-running .training-workspace>.training-heading::before,#s-running .training-workspace>.training-heading::after{content:none}
/* The dedicated chat keeps its existing height and stable message composer. */
#s-coach .coach-chat-head{background:linear-gradient(90deg,#101415 12%,#101415dc 53%,#10141570),url('./assets/life-scenes/coach-800.webp') 75% 40%/cover no-repeat}
#s-coach .coach-chat-head h3{color:#f7f8f3}
@media(max-width:999px){
  #pageHeading.has-section-scene .page-heading{padding:26px;min-height:260px}
  #pageHeading .section-visual-heading h1{font-size:46px}
  .section-visual-heading::after{left:26px}
  .section-visual-copy{max-width:70%}
}
@media(max-width:600px){
  #pageHeading.has-section-scene .page-heading{display:block;min-height:300px;padding:150px 21px 21px;border-radius:12px}
  .section-scene-image{height:230px;bottom:auto}
  .section-scene-image img{object-position:var(--scene-position,70% 50%)}
  .section-visual-heading::before{background:linear-gradient(0deg,#0d1011 0%,#0d1011 10%,#0d1011ed 31%,#0d101185 49%,#0d101108 78%)}
  .section-visual-heading::after{left:21px;width:42px}
  .section-visual-copy{max-width:none;padding:0}
  #pageHeading .section-visual-heading .eyebrow{font-size:9px;letter-spacing:.12em;margin-bottom:10px}
  #pageHeading .section-visual-heading h1{font-size:38px;line-height:1.02;margin-bottom:10px;overflow-wrap:normal}
  #pageHeading .section-visual-heading p{font-size:12px;line-height:1.6;max-width:100%}
  .section-visual-heading .heading-actions{margin-top:16px;padding:0;justify-content:flex-start}
  .section-visual-heading .heading-actions:empty{display:none}
  .section-visual-heading .heading-actions .btn{min-height:44px;font-size:12px}
  #s-gym .training-workspace>.training-heading,#s-running .training-workspace>.training-heading{padding:20px}
}
@media(prefers-reduced-data:reduce){.section-scene-image{display:none}.section-visual-heading::before{background:#0d1011}}
