/* Two complementary stories: a record becomes work, then a conversation makes
   it approachable. Scoped separately from the accepted scene transitions. */
.hero-paper, .work-conversation {
  --story-paper: #fffefa;
  --story-ease: cubic-bezier(.16,1,.3,1);
  --story-shadow: 0 28px 70px -36px #392f3240;
  position: relative;
  min-width: 0;
}
[data-theme="dark"] :is(.hero-paper,.work-conversation) {
  --story-paper: #1d1f25;
  --story-shadow: 0 28px 70px -26px #0008;
}
:is(.hero-paper,.work-conversation) .status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
:is(.hero-paper,.work-conversation) .demo-label { margin: 0; text-align: center; color: var(--muted); font-size: .75rem; letter-spacing: .025em; }

/* A — the sheet stays in place while its contents find order. */
.hero-paper { height: 560px; }
.hero.is-armed .hero-paper { transform: translateY(calc(var(--hero-scroll,0) * -24px)); }
.paper-ambient { position: absolute; inset: 60px 10px 25px; background: radial-gradient(ellipse at 65% 60%,var(--accent-soft),transparent 65%); opacity: .8; }
.paper-sheet { position: absolute; top: 20px; left: 6%; width: 88%; height: 460px; padding: 26px 30px; border: 1px solid var(--line); border-radius: 14px 14px 32px 32px; background: var(--story-paper); box-shadow: var(--story-shadow); transform-origin: 50% 80%; overflow: hidden; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 18px; font-size: .6875rem; color: var(--muted); }
.sheet-top > span:first-child { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .8125rem; }
.sheet-top .icon { width: 16px; height: 16px; }
.paper-original, .paper-organized { position: absolute; left: 30px; right: 30px; top: 86px; }
.paper-original { opacity: 0; }
.hero-paper .small-caps { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: .6875rem; letter-spacing: .1em; }
.small-caps .icon { width: 16px; height: 16px; }
.paper-sheet h3 { font-size: clamp(1.375rem,2.1vw,1.75rem); line-height: 1.5; font-weight: 580; letter-spacing: -.025em; margin: 13px 0 23px; }
.meeting-copy { font-size: .875rem; line-height: 2.35; color: var(--muted); margin: 0; }
.ink-mark { color: var(--ink); position: relative; isolation: isolate; white-space: nowrap; }
.ink-mark::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: 0; height: 7px; background: var(--accent-soft); z-index: -1; transform-origin: left; }
.paper-margin-note { font-size: .6875rem; letter-spacing: .04em; color: var(--muted); margin-top: 20px; }
.paper-organized h3 { margin-bottom: 14px; }
.paper-task { display: flex; align-items: center; gap: 17px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.paper-task > span { font-size: .6875rem; color: var(--accent-text); }
.paper-task strong { display: block; font-size: .875rem; font-weight: 500; }
.paper-task small { display: block; color: var(--muted); font-size: .6875rem; margin-top: 2px; }
.sheet-footer { position: absolute; bottom: 23px; left: 30px; right: 30px; display: flex; align-items: center; gap: 7px; font-size: .6875rem; color: var(--muted); }
.sheet-footer .icon { width: 16px; height: 16px; margin-left: auto; color: var(--accent); }
.paper-side-label { position: absolute; bottom: 43px; right: 5%; display: flex; align-items: center; gap: 12px; font-size: .75rem; }
.paper-side-label .rule { width: 40px; height: 1px; background: var(--accent); }
.hero-paper .demo-label { position: absolute; bottom: 5px; left: 0; right: 0; }
.hero.is-armed:not(.is-entered) .paper-sheet { opacity: 0; }
.hero.is-armed:not(.is-entered) :is(.paper-side-label,.hero-paper .demo-label) { opacity: 0; }
.hero.is-entered .paper-sheet { animation: paper-arrive 1.2s var(--story-ease) .15s both, paper-settle 1s var(--story-ease) 1.9s forwards; }
.hero.is-entered .paper-original { animation: paper-note-pass 1.95s linear both; }
.hero.is-entered .ink-mark::after { animation: story-draw .7s var(--story-ease) .6s both; }
.hero.is-entered .mark-two::after { animation-delay: .85s; }
.hero.is-entered .mark-three::after { animation-delay: 1.1s; }
.hero.is-entered .paper-organized { animation: story-rise .85s var(--story-ease) 2s both; }
.hero.is-entered .paper-task { animation: story-rise .7s var(--story-ease) 2.2s both; }
.hero.is-entered .task-two { animation-delay: 2.35s; }
.hero.is-entered .task-three { animation-delay: 2.5s; }
.hero.is-entered .sheet-footer { animation: story-rise .7s var(--story-ease) 2.8s both; }
.hero.is-entered :is(.paper-side-label,.hero-paper .demo-label) { animation: story-rise .8s var(--story-ease) 3s both; }
.hero.is-entered .hero-highlight::after { transform-origin: left; animation: story-draw 1s var(--ease) .95s both; }
@keyframes paper-arrive { from { opacity: 0; transform: translate(22px,32px) rotate(-8deg); } to { opacity: 1; transform: translate(0,0) rotate(-3deg); } }
@keyframes paper-settle { from { transform: rotate(-3deg); } to { transform: rotate(0); } }
@keyframes paper-note-pass { 0%,8% { opacity: 0; transform: translateY(8px); } 18%,85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-7px); } }
@keyframes story-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes story-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* B — an open dialogue introduces the service, before its three stages. */
.approach-introduction { display: grid; grid-template-columns: .9fr 1.1fr; gap: 96px; align-items: center; padding-bottom: 42px; }
.approach-copy .section-lead { margin-top: 28px; margin-bottom: 18px; }
.approach-note { color: var(--muted); font-size: .875rem; line-height: 1.9; margin: 0 0 27px; }
.conversation-replay { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 10px 0; background: none; color: var(--muted); font-size: .8125rem; transition: color .2s; }
.conversation-replay:hover { color: var(--accent-text); }
.conversation-replay .icon { width: 18px; height: 18px; }
.work-conversation { padding: 20px 6px 0; }
.chat-heading { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .75rem; letter-spacing: .035em; color: var(--muted); margin-bottom: 27px; }
.user-message { display: flex; align-items: flex-start; justify-content: flex-end; gap: 13px; }
.message-avatar { order: 2; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--surface-soft); display: grid; place-items: center; font-size: .75rem; }
.user-message > p { margin: 0; padding: 15px 22px; background: var(--surface-soft); border-radius: 24px 7px 24px 24px; font-size: .9375rem; line-height: 1.8; }
.agent-message { margin: 27px 0 0; position: relative; }
.agent-id { display: flex; align-items: center; gap: 10px; font-size: .75rem; }
.agent-avatar { width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.agent-avatar .brand-mark { transform: scale(.56); margin: 0; }
.agent-id > small { color: var(--accent-text); font-size: .625rem; margin-left: 2px; }
.thinking { display: flex; align-items: center; gap: 4px; position: absolute; top: 54px; left: 40px; opacity: 0; }
.thinking > i { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.thinking > span { color: var(--muted); font-size: .75rem; margin-left: 7px; }
.chat-response { padding: 15px 0 0 40px; }
.chat-response h3 { font-size: 1.375rem; line-height: 1.5; font-weight: 560; letter-spacing: -.025em; margin: 0 0 18px; }
.chat-line { display: flex; align-items: flex-start; gap: 15px; margin: 16px 0; }
.answer-number { font-size: .6875rem; color: var(--accent-text); padding-top: 4px; }
.chat-line strong { font-size: .9375rem; font-weight: 550; }
.chat-line p { font-size: .8125rem; color: var(--muted); margin: 3px 0 0; }
.chat-sources { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .6875rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 21px; }
.chat-sources .icon { width: 16px; height: 16px; }
.source-check { margin-left: auto; color: var(--accent-text); }
.chat-composer { margin: 22px 0 0 40px; padding: 12px 14px 12px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.work-conversation .demo-label { margin-top: 22px; }
.motion-ready .work-conversation.motion-unit:not(.is-revealed) :is(.chat-heading,.user-message,.agent-id,.chat-response,.chat-composer,.demo-label) { opacity: 0; }
.work-conversation.is-revealed .chat-heading { animation: story-rise .8s var(--story-ease) .2s both; }
.work-conversation.is-revealed .user-message { animation: conversation-arrive .9s var(--story-ease) .35s both; }
.work-conversation.is-revealed .agent-id { animation: story-rise .7s var(--story-ease) .85s both; }
.work-conversation.is-revealed .thinking { animation: conversation-thinking 1.05s linear .85s both; }
.work-conversation.is-revealed .thinking i { animation: conversation-pulse .45s ease-in-out 1s 2 alternate; }
.work-conversation.is-revealed .thinking i:nth-child(2) { animation-delay: 1.12s; }
.work-conversation.is-revealed .thinking i:nth-child(3) { animation-delay: 1.24s; }
.work-conversation.is-revealed .chat-response h3 { animation: story-rise .65s var(--story-ease) 1.95s both; }
.work-conversation.is-revealed .chat-line { animation: story-rise .7s var(--story-ease) 2.1s both; }
.work-conversation.is-revealed .line-two { animation-delay: 2.3s; }
.work-conversation.is-revealed .line-three { animation-delay: 2.5s; }
.work-conversation.is-revealed .chat-sources { animation: story-rise .7s var(--story-ease) 2.8s both; }
.work-conversation.is-revealed :is(.chat-composer,.demo-label) { animation: story-rise .9s var(--story-ease) 3s both; }
@keyframes conversation-arrive { from { opacity: 0; transform: translate(17px,12px); } to { opacity: 1; transform: translate(0,0); } }
@keyframes conversation-thinking { 0%,100% { opacity: 0; } 15%,77% { opacity: 1; } }
@keyframes conversation-pulse { from { opacity: .3; transform: translateY(0); } to { opacity: 1; transform: translateY(-3px); } }

@media (max-width:1100px) {
  .hero-paper { height: 535px; }
  .paper-sheet { left: 0; width: 100%; padding-inline: 24px; height: 444px; }
  .paper-original,.paper-organized { left: 24px; right: 24px; }
  .sheet-footer { left: 24px; right: 24px; font-size: .625rem; }
  .paper-task strong { font-size: .8125rem; }
  .paper-task { padding-block: 12px; }
  .meeting-copy { font-size: .8125rem; }
  .approach-introduction { gap: 44px; }
  .user-message > p { font-size: .8125rem; padding-inline: 18px; }
  .chat-response { padding-left: 32px; }
  .chat-response h3 { font-size: 1.1875rem; }
  .chat-line strong { font-size: .875rem; }
  .chat-line p { font-size: .75rem; }
  .chat-composer { margin-left: 32px; }
}
@media (max-width:900px) {
  .approach-introduction { grid-template-columns: 1fr; gap: 28px; }
  .approach-copy { max-width: 600px; }
  .work-conversation { width: 100%; max-width: 550px; margin-inline: auto; }
  .conversation-replay { margin-bottom: 0; }
}
@media (max-width:700px) {
  .hero-paper { width: 100%; max-width: 480px; height: 535px; margin: 32px auto 0; }
  .paper-sheet { left: 5%; width: 90%; top: 18px; }
  .paper-sheet h3 { font-size: 1.5rem; }
  .paper-side-label { bottom: 39px; }
  .hero-paper .demo-label { font-size: .6875rem; }
  .approach-introduction { padding-bottom: 24px; }
  .approach-copy .section-lead { margin-top: 22px; }
  .approach-copy .section-label { margin-bottom: 23px; }
  .work-conversation { padding: 6px 0 0; }
  .chat-line { margin-block: 15px; }
}
@media (max-width:400px) {
  .hero-paper { height: 506px; }
  .paper-sheet { left: 1%; width: 98%; height: 423px; padding-inline: 20px; }
  .paper-original,.paper-organized { left: 20px; right: 20px; top: 80px; }
  .paper-sheet h3 { font-size: 1.375rem; }
  .meeting-copy { font-size: .75rem; }
  .paper-task { padding-block: 10px; }
  .paper-task strong { font-size: .75rem; }
  .paper-task small { font-size: .625rem; }
  .sheet-top { font-size: .625rem; }
  .sheet-top > span:first-child { font-size: .75rem; }
  .sheet-footer { left: 20px; right: 20px; font-size: .5625rem; }
  .paper-side-label { font-size: .6875rem; }
  .chat-heading { font-size: .6875rem; }
  .user-message { gap: 8px; }
  .user-message > p { font-size: .75rem; padding-inline: 14px; }
  .message-avatar { width: 27px; height: 27px; }
  .chat-response { padding-left: 17px; }
  .chat-response h3 { font-size: 1.0625rem; }
  .chat-line { gap: 10px; }
  .chat-line p { font-size: .6875rem; }
  .chat-composer { margin-left: 17px; font-size: .6875rem; padding-left: 17px; }
  .chat-sources { gap: 6px; font-size: .625rem; }
}
@media (prefers-reduced-motion:reduce) {
  .hero-paper *, .work-conversation *, .hero-highlight::after { animation: none !important; }
  .hero.is-armed .hero-paper { transform: none; }
  .hero.is-armed:not(.is-entered) :is(.paper-sheet,.paper-side-label,.hero-paper .demo-label), .motion-ready .work-conversation.motion-unit:not(.is-revealed) :is(.chat-heading,.user-message,.agent-id,.chat-response,.chat-composer,.demo-label) { opacity: 1; }
  .paper-original, .thinking { display: none; }
}
