/* Source typography from GitHub d39ee2b, applied to the selected layout. */
.direction-poster{--type-heading-2:clamp(1.65rem,3.6vw,2.65rem);--type-body-large:clamp(1.04rem,1.45vw,1.18rem)}
.direction-poster p{line-height:1.5}
.direction-poster .hero-source h1{font-size:clamp(2.2rem,4.2vw,3.25rem);font-weight:750;line-height:1.02;letter-spacing:0;height:3.06em;min-height:3.06em;transition:opacity .22s ease,transform .26s cubic-bezier(.22,1,.36,1)}
.direction-poster .hero-source h1.is-changing{opacity:0;transform:translateY(6px)}
.direction-poster .section-heading h2,.direction-poster .notes-story-heading h2,.direction-poster .contact h2{font-size:var(--type-heading-2);font-weight:750;line-height:1.05;letter-spacing:0;text-wrap:balance}
.direction-poster .hero-intro,.direction-poster .section-heading p,.direction-poster .notes-story-heading p,.direction-poster .contact p{font-size:var(--type-body-large);line-height:1.5}
.direction-poster .hero-intro{max-width:540px}
.direction-poster .process .section-heading{max-width:960px}
.direction-poster .process .section-heading p{max-width:780px}
.direction-poster .chat-message p{font-size:clamp(.92rem,1.35vw,.99rem);line-height:1.36}
.direction-poster .sender{font-size:.76rem}
.direction-poster .step-copy h3{font-size:clamp(1.1rem,2.1vw,1.2rem);line-height:1.18;letter-spacing:0;margin-bottom:14px}
.direction-poster .step-copy p{font-size:1rem;line-height:1.5}
/* Ease into the larger desktop type without a jump at the wide breakpoint. */
@media(min-width:1101px) and (max-width:1279px){
 .direction-poster .step-copy h3{font-size:clamp(19.2px,calc(4vw - 25.6px),25.6px)}
 .direction-poster .step-copy p{font-size:clamp(16px,calc(2vw - 6.4px),19.2px)}
}
.direction-poster .faq-question{font-size:1.08rem;line-height:1.5}
.direction-poster .faq-answer p{font-size:1rem;line-height:1.5}
.direction-poster .email-button{font-size:1.2rem;font-weight:650;min-width:200px;padding:17px 56px}
/* Preserve header height while its scroll padding changes. */
.direction-poster .site-header{min-height:77px}
@media(max-width:900px){.direction-poster .site-header{min-height:75px}}
@media(max-width:560px){.direction-poster .site-header{min-height:67px}}
@media(min-width:1101px) and (max-width:1200px){.direction-poster .hero-source h1{font-size:clamp(2.9rem,4.3vw,3.2rem)}}
@media(min-width:981px) and (max-width:1100px){
 .direction-poster .hero-source{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(32px,4vw,48px)}
 .direction-poster .hero-source h1{font-size:clamp(2.7rem,4.3vw,3.08rem)}
}
@media(max-width:980px){
 /* Adjacent stacked sections each contribute half of the shared gap. */
 .direction-poster{--stacked-section-gap:clamp(120px,14vw,144px)}
 .direction-poster .hero-source{--hero-phone-width:244px;grid-template-columns:minmax(0,1fr);gap:24px;padding-top:clamp(28px,5vw,44px);padding-bottom:calc(var(--stacked-section-gap)/2)}
 .direction-poster .hero-copy{text-align:center;max-width:620px;width:100%;margin:auto}
 .direction-poster .hero-intro{margin-inline:auto;max-width:540px}
 .direction-poster .hero-stage{width:100%;max-width:620px;margin:auto;height:auto;min-height:calc(var(--hero-phone-width)*2.3)}
 .direction-poster .process{padding-block:calc(var(--stacked-section-gap)/2)}
}
@media(max-width:900px){
 .direction-poster .process-row{grid-template-columns:1fr;text-align:center;gap:28px}
 .direction-poster .step-copy h3,.direction-poster .step-copy p{max-width:560px;margin-inline:auto}
 .direction-poster .step-copy p{font-size:.96rem;line-height:1.48}
 .direction-poster .step-visual{width:100%;max-width:340px;margin:auto;order:2!important}
 .direction-poster .step-copy{order:1!important}
}
@media(max-width:560px){
 .direction-poster .hero-source{gap:18px}
 .direction-poster .hero-source h1{font-size:clamp(1.68rem,8.5vw,2.55rem)}
 /* Keep the original overlay, leaving gaps at the wordmark and activity title. */
 .direction-poster .hero-stage{display:flex;align-items:flex-start;height:auto;min-height:0}
 .direction-poster .chat-thread{max-width:440px;margin:0 auto;padding-top:0;gap:20px;translate:0}
 .direction-poster .chat-message:nth-child(2){margin-top:54px}
 .direction-poster .chat-message:nth-child(3){margin-top:57px}
 .direction-poster .app-phone{position:absolute;top:74px;right:3px;width:min(220px,73%);margin:0;transform:rotate(5deg)}
 .direction-poster .chat-message p{font-size:.93rem}
 .direction-poster .email-button{padding:17px 48px;min-width:190px}
}
@media(min-width:1101px) and (max-height:760px){
 .direction-poster .notes-story-heading h2{font-size:clamp(1.65rem,3.2vw,2.55rem)}
 .direction-poster .notes-story-heading p{font-size:1.05rem}
}

/* A curved photo arrangement measured from the note, rather than the viewport. */
.direction-poster .orbit-photo{width:var(--frame-width);height:var(--frame-height);right:auto;bottom:auto}
.direction-poster .orbit-photo-1{--frame-width:clamp(185px,12vw,230px);--frame-height:clamp(175px,11vw,210px)}
.direction-poster .orbit-photo-2{--frame-width:clamp(165px,11vw,210px);--frame-height:clamp(195px,13vw,245px)}
.direction-poster .orbit-photo-3{--frame-width:clamp(180px,12vw,225px);--frame-height:clamp(140px,9vw,175px)}
.direction-poster .orbit-photo-4{--frame-width:clamp(160px,11vw,205px);--frame-height:clamp(195px,12vw,230px)}
.direction-poster .orbit-photo-5{--frame-width:clamp(140px,10vw,185px);--frame-height:clamp(165px,11vw,205px)}
.direction-poster .orbit-photo-6{--frame-width:clamp(175px,11vw,210px);--frame-height:clamp(135px,8.5vw,165px)}
.direction-poster .orbit-photo-7{--frame-width:clamp(175px,11vw,210px);--frame-height:clamp(130px,8vw,155px)}
.direction-poster .orbit-photo-8{--frame-width:clamp(150px,10vw,190px);--frame-height:clamp(130px,8.5vw,160px)}
.direction-poster .orbit-photo-1,.direction-poster .orbit-photo-6{left:calc(50% - var(--note-half-width,205px) - var(--frame-width) + 35px)}
.direction-poster .orbit-photo-2,.direction-poster .orbit-photo-4{left:calc(50% + var(--note-half-width,205px) - 35px)}
.direction-poster .orbit-photo-1,.direction-poster .orbit-photo-2{top:calc(50% - var(--note-half-height,343px) - 28px)}
.direction-poster .orbit-photo-4,.direction-poster .orbit-photo-6{top:calc(50% + var(--note-half-height,343px) - var(--frame-height) + 28px)}
.direction-poster .orbit-photo-3,.direction-poster .orbit-photo-7{left:max(0px,calc(50% - var(--note-half-width,205px) - var(--frame-width) - 20px))}
.direction-poster .orbit-photo-5,.direction-poster .orbit-photo-8{left:min(calc(100% - var(--frame-width)),calc(50% + var(--note-half-width,205px) + 20px))}
.direction-poster .orbit-photo-7,.direction-poster .orbit-photo-8{top:calc(50% - var(--note-half-height,343px)*.36 - var(--frame-height)*.5)}
.direction-poster .orbit-photo-3,.direction-poster .orbit-photo-5{top:calc(50% + var(--note-half-height,343px)*.36 - var(--frame-height)*.5)}

/* Small screens keep the introduction visible and read through the page naturally. */
@media(max-width:1100px),(max-height:760px){
 .direction-poster .notes-story{height:auto;padding:calc(var(--stacked-section-gap,96px)/2) 0 40px}
 .direction-poster .notes-sticky{position:relative;top:auto;height:auto;min-height:0;display:block;padding:0 4vw}
 .direction-poster .notes-story-heading{position:relative;top:auto;left:auto;width:100%;height:auto;max-width:620px;margin:0 auto 28px;padding:0 2vw;text-align:center;opacity:1;transform:none;pointer-events:auto}
 .direction-poster .notes-story-heading p{max-width:540px;margin:18px auto 0}
 .direction-poster .notes-theatre{height:auto;max-width:720px;margin:auto;padding:54px 0}
 .direction-poster .opening-note{position:relative;left:auto;top:auto;width:min(410px,86%);max-width:86%;margin:auto;transform:scale(var(--note-scale,1));transform-origin:center}
 .direction-poster .orbit-photo{--frame-width:125px;--frame-height:115px}
 .direction-poster .orbit-photo-1,.direction-poster .orbit-photo-2,.direction-poster .orbit-photo-4{--frame-height:145px}
 .direction-poster .note-row{font-size:14px;line-height:1.35;padding:4px 0}
}
@media(max-width:520px){
 .direction-poster .orbit-photo{--frame-width:90px;--frame-height:90px}
 .direction-poster .orbit-photo-1,.direction-poster .orbit-photo-2,.direction-poster .orbit-photo-4{--frame-height:105px}
 .direction-poster .orbit-photo-1,.direction-poster .orbit-photo-6{left:calc(50% - var(--note-half-width,150px) - var(--frame-width) + 55px)}
 .direction-poster .orbit-photo-2,.direction-poster .orbit-photo-4{left:calc(50% + var(--note-half-width,150px) - 55px)}
 .direction-poster .note-body{padding:16px 13px}
}
@media(prefers-reduced-motion:reduce){
 .direction-poster .hero-source h1{transition:none}
 .direction-poster .hero-source h1.is-changing{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce) and (max-width:1100px),(prefers-reduced-motion:reduce) and (max-height:760px){
 .direction-poster .opening-note{transform:none!important}
}

/* The first two replies settle lower over the phone. Compact offsets below
   temporarily replace these final transforms while the conversation types. */
.hero-source .chat-message:first-child { transform: translateY(calc(24 * var(--wide-unit, 1px))); }
.hero-source .chat-message:nth-child(2) { transform: translateY(calc(12 * var(--wide-unit, 1px))); }
@media (max-width: 560px) {
 .hero-source .chat-message:first-child { transform: translateY(32px); }
 .hero-source .chat-message:nth-child(2) { transform: translateY(24px); }
}

/* Keep the overlay while clearing the group badge and Next Up title. */
@media (min-width: 561px) {
 .hero-source.hero-poster .chat-message:first-child { transform: none; }
 .hero-source.hero-poster .chat-message:nth-child(3) { margin-block-start: clamp(58px, 7vw, 102px); }
 .direction-poster .hero-poster .app-phone { top: calc(50% - clamp(18px, (100vw - 1600px) * .16, 52px)); }
}
@media (981px <= width <= 1100px) {
 .direction-poster .hero-poster .app-phone { top: calc(50% - 40px); }
}
@media (max-width: 560px) {
 .hero-source.hero-poster .chat-message:nth-child(2) { transform: none; }
}
@media (421px <= width <= 560px) {
 .direction-poster .hero-poster .app-phone { top: 58px; }
}

/* Read the compact conversation first, then spread it into the phone overlay. */
@media (prefers-reduced-motion: no-preference) {
 .hero-source .chat-thread.chat-compact .chat-message { transform: translate(var(--chat-compact-x, 0px), var(--chat-compact-y, 0px)); }
 .hero-source .chat-thread.chat-spreading .chat-message { transition: transform 900ms cubic-bezier(.22, 1, .36, 1); }
}
