body::before, body::after { display: none; }
main.home-page { display: block; flex: none; pointer-events: auto; }
.home-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100vh; height: 100svh; overflow: hidden; }
.home-hero::before { content: ''; position: absolute; z-index: -2; inset: 0; background: #e6ead5 url('/assets/backgrounds/shrine-path-v2/shrine-path-centered.webp') var(--shrine-background-position, 50%) var(--shrine-background-position-y, center) / var(--shrine-background-size, cover) no-repeat; pointer-events: none; }
.home-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #fffdf448, transparent 45%), linear-gradient(#fffdf42e, transparent 22%); pointer-events: none; }
.home-hero .home-main { position: static; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; flex: 1; pointer-events: none; }
.home-hero .cast-stage { position: absolute; height: 100%; }
/* Keep the original viewport composition inside the first full-height section. */
.home-hero { contain: paint; }
.home-hero .cast-loading { position: absolute; }
.home-hero .page-actions { position: absolute; bottom: max(64px, calc(env(safe-area-inset-bottom, 0px) + 48px)); }
.home-hero .home-x-share { position: absolute; }
.home-footer.site-legal-links { position: relative; left: auto; bottom: auto; justify-content: flex-start; width: min(1120px, calc(100% - 96px)); max-width: none; padding: 24px 0 max(24px, env(safe-area-inset-bottom)); border: 0; border-radius: 0; background: transparent; transform: none; }
.home-conversation { position: relative; overflow: hidden; background: linear-gradient(115deg, #eef3e9, #faf8f0 65%, #f8f2eb); padding-block: 100px 96px; }
.conversation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'portrait copy' 'portrait demo'; column-gap: 80px; row-gap: 24px; align-items: start; }
.conversation-copy { grid-area: copy; min-width: 0; }
.conversation-copy h1 { margin: 0 0 18px; color: #294e40; font-family: var(--serif); font-size: clamp(27px, 2.6vw, 35px); font-weight: 600; line-height: 1.65; letter-spacing: .02em; }
.conversation-copy h1 span { display: block; }
.introduction-copy { color: #536053; font-size: 15px; line-height: 2; letter-spacing: .025em; }
.conversation-visual { grid-area: portrait; position: relative; align-self: center; width: 100%; }
.portrait-orbit { position: absolute; top: -17px; left: -17px; width: calc(100% + 34px); aspect-ratio: 1; border: 1px solid #fff9; border-radius: 50%; }
.portrait-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; border: 12px solid #fffc; border-radius: 50%; background: #e2eadb; box-shadow: 0 30px 80px #3d523b08; }
.portrait-frame img { position: absolute; display: block; top: -6%; left: -13%; width: 126%; max-width: none; height: 126%; object-fit: cover; mix-blend-mode: multiply; }
.conversation-demo { grid-area: demo; min-width: 0; }
.user-turn { display: flex; justify-content: flex-end; align-items: center; min-height: 34px; margin-bottom: 12px; }
#demo-user { padding: 7px 13px; border-radius: 14px 14px 3px 14px; background: #e0e8dc; color: #3e5e48; font-size: 12px; line-height: 1.65; }
.speaker-name { margin-bottom: 8px; color: #49634c; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.response-bubble { position: relative; display: flex; align-items: center; min-height: 112px; padding: 22px 24px; border: 1px solid #e3e7de; border-radius: 4px 22px 22px 22px; background: #fffefc; box-shadow: 0 8px 28px #243b2a03; }
#demo-reply { color: #3e5141; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.typing-dots { display: inline-flex; gap: 6px; align-items: center; height: 26px; }
.typing-dots[hidden] { display: none; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: #9aa995; animation: typing-pulse 1s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .14s; }
.typing-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes typing-pulse { 0%, 70%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
.conversation-options { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.try-label { margin-bottom: 4px; color: #6b796d; font-size: 12px; line-height: 1.8; letter-spacing: .02em; }
.conversation-choice { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 46px; padding: 10px 17px; border: 1px solid #d8cbd5; border-radius: 8px; background: #fffafc80; color: #6f566d; font-size: 13px; line-height: 1.6; text-align: left; transition: color .18s, background .18s, border-color .18s, transform .18s; }
.conversation-choice .choice-arrow { font-size: 17px; font-weight: 400; opacity: .7; }
.conversation-choice:hover { border-color: #ac92a8; background: #eee6ed; transform: translateX(2px); }
.conversation-choice[aria-pressed="true"] { border-color: #7c6378; background: #7c6378; color: #fffdf5; }
.conversation-choice:focus-visible { outline: 3px solid #ac92a8; outline-offset: 4px; }
.conversation-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.conversation-cta { flex-shrink: 0; }
.demo-status { margin-top: 8px; color: #6b796d; font-size: 12px; line-height: 1.8; }
.demo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) {
  .home-footer.site-legal-links { width: calc(100% - 64px); }
  .conversation-layout { column-gap: 48px; }
  .conversation-copy h1 { font-size: 28px; letter-spacing: 0; }
  .introduction-copy { font-size: 14px; }
  .response-bubble { padding: 20px; }
}
@media (max-width: 760px) {
  .home-footer.site-legal-links { width: calc(100% - 40px); }
  .home-conversation { padding-block: 64px 60px; }
  .conversation-layout { width: min(520px, calc(100% - 48px)); grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-areas: 'copy copy' 'portrait exchange' 'options options' 'footer footer' 'status status'; gap: 20px 14px; }
  .conversation-copy h1 { font-size: clamp(25px, 5.7vw, 32px); line-height: 1.65; letter-spacing: .01em; }
  .introduction-copy { font-size: 14px; line-height: 2; }
  .conversation-visual { align-self: start; margin-top: 12px; }
  .portrait-orbit { top: -7px; left: -7px; width: calc(100% + 14px); }
  .portrait-frame { border-width: 6px; }
  .conversation-demo { display: contents; }
  .conversation-exchange { grid-area: exchange; min-width: 0; }
  .user-turn { min-height: 32px; margin-bottom: 8px; }
  #demo-user { padding: 6px 9px; font-size: 11px; }
  .speaker-name { font-size: 11px; }
  .response-bubble { min-height: 166px; padding: 15px; border-radius: 4px 18px 18px 18px; }
  .conversation-options { grid-area: options; margin-top: 0; }
  .conversation-choice { min-height: 44px; padding: 10px 14px; }
  .conversation-footer { grid-area: footer; margin-top: 2px; }
  .demo-status { grid-area: status; }
  #demo-reply { font-size: 13px; line-height: 1.85; }
}
@media (max-width: 680px) {
  .home-hero::after { background: linear-gradient(#fffdf470, transparent 20%), linear-gradient(0deg, #fffdf554, transparent 20%); }
}
@media (max-width: 360px) {
  .conversation-layout { width: calc(100% - 40px); }
  .conversation-copy h1 { font-size: 23px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .conversation-choice, .typing-dots i { transition: none; animation: none; }
}
