/* One saved handover, available across an approved AI-tool switch. */
#landing .header-menu { display: none; }
#landing .header-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--ink); cursor: pointer; list-style: none; border-radius: 6px; }
#landing .header-menu summary::-webkit-details-marker { display: none; }
#landing .header-menu summary::marker { content: ""; }
#landing .header-menu summary:hover { background: var(--surface); }
#landing .header-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#landing .header-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; width: min(300px, calc(100vw - 32px)); padding: 12px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
#landing .header-menu-panel nav { display: flex; flex-direction: column; }
#landing .header-menu-panel a { display: flex; align-items: center; min-height: 44px; font-size: 15px; }
#landing .header-menu-panel a:hover { color: var(--accent); }
#landing .header-menu-utilities { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; padding-block: 12px 0; border-top: 1px solid var(--line); }
#landing .header-menu-utilities .theme-picker { display: inline-flex; }
#landing .site-footer .footer-bottom { width: 100%; max-width: none; }
#landing .story-hero { padding-block: clamp(64px, 8vw, 112px) clamp(64px, 7vw, 96px); }
#landing .story-hero h1 { max-width: 25ch; font-size: clamp(42px, 5.6vw, 80px); line-height: 1.04; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
#landing .story-hero h1 span { color: var(--muted); }
#landing .story-hero > p { max-width: 41ch; margin-top: 28px; color: var(--ink); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; text-wrap: balance; }
#landing .story-hero > .hero-actions { margin-top: 28px; }
#landing .story-hero .hero-actions > .button { min-height: 48px; gap: 24px; padding-inline: 24px; }
#landing .memory-story { border-top: 1px solid var(--line); }
#landing .story-reader { min-width: 0; }
#landing .memory-story .story-step:last-child { border-bottom: 0; }
#landing .story-step { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding-block: 64px; border-bottom: 1px solid var(--line); }
#landing .story-step-copy { min-width: 0; }
#landing .story-step h2 { max-width: 16ch; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
#landing .story-step-copy > p { max-width: 39ch; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.65; }
#landing .story-step-copy > .story-example-label { margin-top: 18px; font-size: 12px; line-height: 1.5; }
#landing .story-guide-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 15px; }
#landing .story-stage { display: none; }
#landing .story-visual { position: relative; min-width: 0; color: var(--ink); }
#landing .memory-story .story-step h2 { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; max-width: none; }
#landing .story-step-number { padding-top: 9px; color: var(--muted); font-size: 16px; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
#landing .memory-story .story-step-copy > p, #landing .memory-story .story-step-copy > .story-guide-link { margin-left: 50px; }
#landing .story-mark { width: 28px; height: 28px; stroke: var(--accent); fill: none; flex: none; }
#landing .handover-card { width: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
#landing .handover-project { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
#landing .handover-project > div { display: flex; flex-direction: column; gap: 2px; }
#landing .handover-project strong { font-size: 17px; line-height: 1.4; font-weight: 600; }
#landing .handover-project span { color: var(--muted); font-size: 12px; line-height: 1.5; }
#landing .handover-fields { margin: 0; }
#landing .handover-row { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding-block: 11px; border-top: 1px solid var(--line); }
#landing .handover-row:last-child { padding-bottom: 0; }
#landing .handover-row dt { color: var(--muted); font-size: 12px; line-height: 1.6; }
#landing .handover-row dd { margin: 0; font-size: 15px; line-height: 1.45; }
#landing .transfer-scene { width: 100%; max-width: 440px; margin-inline: auto; }
#landing .transfer-actor { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; }
#landing .transfer-actor strong { font-size: 17px; font-weight: 600; }
#landing .transfer-actor span { color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; }
#landing .transfer-path { display: flex; align-items: center; justify-content: center; gap: 12px; height: 38px; color: var(--muted); font-size: 12px; }
#landing .transfer-path svg { width: 20px; height: 28px; flex: none; }
#landing .transfer-path.is-active { color: var(--accent); }
#landing .transfer-path--approve svg { transform: rotate(180deg); }
#landing .transfer-recipient { flex-wrap: wrap; padding-block: 12px 0; border-top: 1px solid var(--line); }
#landing .transfer-recipient p { flex-basis: 100%; margin: -10px 0 0; color: var(--ink); font-size: 17px; line-height: 1.45; }
#landing .transfer-outcome { padding-top: 16px; color: var(--accent); font-size: 13px; text-align: center; }
#landing .transfer-missing { padding-block: 28px; }
#landing .transfer-missing > .transfer-actor { padding: 18px 0; border-bottom: 1px solid var(--line); }
#landing .transfer-break { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 100px; color: var(--muted); font-size: 13px; }
#landing .transfer-break svg { width: 20px; height: 42px; stroke-dasharray: 3 4; }
#landing .transfer-missing > .transfer-actor--question { display: block; padding: 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }
#landing .transfer-actor--question p { margin-top: 16px; font-size: 23px; line-height: 1.4; letter-spacing: -.02em; }
#landing .transfer-scene--1 .transfer-source strong, #landing .transfer-scene--2 .transfer-recipient strong, #landing .transfer-scene--3 .transfer-recipient strong { color: var(--accent); }
#landing .transfer-scene--3 .handover-row--next dd { color: var(--accent); font-weight: 600; }
#landing .story-scene-title { display: flex; align-items: baseline; gap: 14px; padding-block: 0 16px; border-bottom: 1px solid var(--line); }
#landing .story-scene-title > span { color: var(--accent); font-size: 16px; font-variant-numeric: tabular-nums; }
#landing .story-scene-title > strong { font-size: 22px; line-height: 1.3; font-weight: 500; letter-spacing: -.02em; }
#landing .story-step--setup { align-items: start; padding-block: 72px; border-top: 1px solid var(--line); }
#landing #setup-brief { scroll-margin-top: 104px; }
#landing .story-setup-actions { display: grid; gap: 14px; margin: 24px 0 0; padding-left: 22px; color: var(--ink); font-size: 16px; line-height: 1.55; }
#landing .story-setup-actions li { padding-left: 6px; }
#landing .story-setup-actions li::marker { color: var(--accent); font-variant-numeric: tabular-nums; }
#landing .story-setup-panel { min-width: 0; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; text-align: left; }
#landing .story-setup-panel label { color: var(--ink); font-size: 15px; font-weight: 500; }
#landing .story-setup-panel .setup-prompt-field { height: auto; min-height: 200px; margin: 12px 0 16px; padding: 16px; background: var(--surface); border: 1px solid var(--field-border); border-radius: 8px; color: var(--ink); font-size: 14px; line-height: 1.65; resize: vertical; }
#landing .story-setup-panel > .button { width: auto; min-height: 48px; padding-inline: 24px; }
#landing .story-setup-panel #setup-note { max-width: 45ch; margin: 16px 0 6px; color: var(--muted); font-size: 13px; line-height: 1.65; }
#landing .story-setup-panel > .inline-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
#landing .story-setup-panel > .story-setup-extra { margin-top: 28px; font-size: 14px; line-height: 1.6; }
#landing .story-questions { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; padding-block: 72px; }
#landing .story-questions h2 { max-width: 13ch; font-size: 34px; line-height: 1.15; letter-spacing: -.03em; }
#landing .story-questions .landing-faq { min-width: 0; }
#landing .story-questions .landing-faq summary { font-size: 16px; }
#landing .story-questions .landing-faq p { font-size: 15px; }

/* The same project continues beyond its first handover. */
#landing .context-depth { padding-block: 72px 64px; border-top: 1px solid var(--line); }
#landing .context-depth-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; padding-bottom: 56px; }
#landing .context-depth-intro h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
#landing .context-depth-intro > p { max-width: 41ch; color: var(--muted); font-size: 19px; line-height: 1.65; }
#landing .context-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
#landing .context-detail-copy { min-width: 0; }
#landing .context-detail h3 { font-size: clamp(29px, 2.8vw, 38px); line-height: 1.15; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
#landing .context-detail-copy > p { max-width: 49ch; margin-top: 18px; font-size: 16px; line-height: 1.7; }
#landing .context-detail h4 { margin-top: 26px; font-size: 16px; line-height: 1.5; font-weight: 600; }
#landing .context-detail h4 + p { margin-top: 8px; }
#landing .context-detail-copy > .context-detail-boundary { color: var(--muted); font-size: 14px; line-height: 1.65; }
#landing .context-detail-link { display: flex; align-items: center; gap: 12px; width: fit-content; min-height: 44px; margin-top: 12px; font-size: 14px; }
#landing .context-detail-link + .context-detail-link { margin-top: 0; }
#landing .context-detail-link svg { width: 18px; height: 18px; flex: none; }
#landing .context-example { min-width: 0; width: 100%; max-width: 440px; margin: 0 auto; padding: 32px; background: var(--surface); border-radius: 12px; }
#landing .context-example figcaption { margin-bottom: 28px; color: var(--muted); font-size: 12px; line-height: 1.5; }
#landing .context-example > .context-example-note { margin-top: 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
#landing .context-update-flow { display: grid; gap: 28px; margin: 0; padding-left: 24px; }
#landing .context-update-flow li { padding-left: 8px; font-size: 16px; line-height: 1.5; }
#landing .context-update-flow li::marker { color: var(--accent); font-variant-numeric: tabular-nums; }
#landing .context-update-flow strong { display: block; font-weight: 500; }
#landing .context-update-flow span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
#landing .context-source-notes { display: grid; gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
#landing .context-summary { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
#landing .context-summary > span { display: block; color: var(--accent); font-size: 12px; line-height: 1.5; }
#landing .context-summary > p { margin-block: 12px; font-size: 23px; line-height: 1.4; letter-spacing: -.02em; }
#landing .context-summary > span:last-child { color: var(--muted); }
#landing .context-conflict { margin: 0; }
#landing .context-conflict > div { padding-block: 18px; border-bottom: 1px solid var(--line); }
#landing .context-conflict > div:first-child { padding-top: 0; }
#landing .context-conflict dt { color: var(--muted); font-size: 12px; line-height: 1.5; }
#landing .context-conflict dd { margin: 8px 0 0; font-size: 19px; line-height: 1.45; }
#landing .context-review-question { margin-top: 24px; font-size: 23px; line-height: 1.4; letter-spacing: -.02em; }
#landing .context-version-list { margin: 0; padding: 0; list-style: none; }
#landing .context-version-list li { padding-block: 20px; border-bottom: 1px solid var(--line); }
#landing .context-version-list li:first-child { padding-top: 0; }
#landing .context-version-list span { color: var(--muted); font-size: 12px; line-height: 1.5; }
#landing .context-version-list p { margin-top: 8px; font-size: 20px; line-height: 1.5; letter-spacing: -.01em; }
#landing .context-depth-outro { max-width: 65ch; padding-top: 20px; color: var(--muted); font-size: 17px; line-height: 1.7; }

@media (min-width: 960px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  #landing .memory-story.story-enhanced { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-block: 48px; }
  #landing .story-enhanced .story-reader { grid-column: 1; grid-row: 1; }
  #landing .story-enhanced .story-step { display: flex; flex-direction: column; justify-content: center; align-items: stretch; min-height: max(560px, 72svh); padding-block: 64px; border-bottom: 0; }
  #landing .story-enhanced .story-step h2 { color: var(--muted); transition: color 160ms ease; }
  #landing .story-enhanced .story-inline-visual { display: none; }
  #landing .story-enhanced .story-stage { position: sticky; top: max(96px, calc((100svh - 560px) / 2)); grid-column: 2; grid-row: 1; display: block; height: 560px; width: 100%; max-width: 440px; margin: 0 auto; }
  #landing .story-handover-shared { position: absolute; top: 148px; inset-inline: 0; visibility: visible; }
  #landing .story-stage .story-frame { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: none; }
  #landing .story-stage .transfer-source { position: absolute; top: 64px; inset-inline: 0; height: 42px; }
  #landing .story-stage .transfer-path--save { position: absolute; top: 110px; inset-inline: 0; }
  #landing .story-stage .transfer-path--read { position: absolute; top: 396px; inset-inline: 0; }
  #landing .story-stage .transfer-recipient { position: absolute; top: 436px; inset-inline: 0; }
  #landing .story-stage .transfer-outcome { position: absolute; top: 404px; inset-inline: 0; }
  #landing .story-stage .transfer-missing { position: absolute; top: 80px; inset-inline: 0; }
  #landing .story-stage > figcaption { position: absolute; bottom: 0; inset-inline: 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
  #landing .story-enhanced[data-story-active="0"] [data-story-frame="0"],
  #landing .story-enhanced[data-story-active="1"] [data-story-frame="1"],
  #landing .story-enhanced[data-story-active="2"] [data-story-frame="2"],
  #landing .story-enhanced[data-story-active="3"] [data-story-frame="3"] { visibility: visible; opacity: 1; transition: opacity 200ms cubic-bezier(.16, 1, .3, 1); }
  #landing .story-enhanced[data-story-active="0"] [data-story-step="0"] h2,
  #landing .story-enhanced[data-story-active="1"] [data-story-step="1"] h2,
  #landing .story-enhanced[data-story-active="2"] [data-story-step="2"] h2,
  #landing .story-enhanced[data-story-active="3"] [data-story-step="3"] h2 { color: var(--ink); }
  #landing .story-enhanced[data-story-active="0"] [data-story-step="0"] .story-step-number,
  #landing .story-enhanced[data-story-active="1"] [data-story-step="1"] .story-step-number,
  #landing .story-enhanced[data-story-active="2"] [data-story-step="2"] .story-step-number,
  #landing .story-enhanced[data-story-active="3"] [data-story-step="3"] .story-step-number { color: var(--accent); }
  #landing .story-enhanced[data-story-active="0"] .story-handover-shared { visibility: hidden; }
  #landing .story-enhanced[data-story-active="1"] .story-handover-shared .handover-fields { animation: handover-save 450ms cubic-bezier(.16, 1, .3, 1) both; }
  #landing .story-enhanced[data-story-active="3"] .story-handover-shared .handover-row--next dd { color: var(--accent); font-weight: 600; }
}
@keyframes handover-save { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@media (max-width: 959px) {
  #landing .context-depth { padding-block: 48px; }
  #landing .context-depth-intro, #landing .context-detail { grid-template-columns: 1fr; gap: 28px; }
  #landing .context-depth-intro { padding-bottom: 36px; }
  #landing .context-depth-intro h2 { font-size: 38px; }
  #landing .context-depth-intro > p { max-width: 50ch; font-size: 18px; }
  #landing .context-detail { padding-block: 40px; }
  #landing .context-detail-copy > p { max-width: 65ch; }
  #landing .context-example { max-width: none; }
  #landing .context-depth-outro { padding-top: 8px; }
  #landing .story-hero { padding-block: 44px 52px; }
  #landing .story-hero h1 { max-width: 23ch; font-size: clamp(38px, 6.4vw, 62px); }
  #landing .story-hero > p { max-width: 38ch; margin-top: 22px; font-size: 19px; }
  #landing .story-step { grid-template-columns: 1fr; gap: 24px; padding-block: 40px; }
  #landing .story-step h2 { max-width: 18ch; font-size: 36px; }
  #landing .story-step-copy > p { max-width: 46ch; margin-top: 16px; font-size: 17px; line-height: 1.6; }
  #landing .story-step-copy > .story-example-label { margin-top: 14px; font-size: 12px; }
  #landing .story-inline-visual { min-height: 0; padding: 8px 0 0; }
  #landing .story-step--setup { gap: 30px; }
  #landing .story-setup-actions { font-size: 16px; }
  #landing .story-setup-panel > .story-setup-extra { margin-top: 20px; font-size: 14px; }
  #landing .story-questions { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; }
  #landing .story-questions h2 { max-width: none; font-size: 32px; }
  #landing #setup-brief { scroll-margin-top: 84px; }
}
@media (max-width: 900px) {
  #landing .header-inner { display: flex; flex-wrap: nowrap; min-height: 64px; height: auto; padding-block: 8px; column-gap: 12px; }
  #landing .header-inner > .site-nav { display: none; }
  #landing .header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  #landing .header-actions > .theme-picker, #landing .header-actions > .header-sign-in { display: none; }
  #landing .header-actions > .header-setup-link { display: inline-flex; min-height: 44px; padding: 10px 14px; white-space: nowrap; font-size: 13px; }
  #landing .header-menu { position: relative; display: block; flex: none; }
  #landing .header-menu-utilities .theme-picker { display: inline-flex; }
}
@media (max-width: 480px) {
  #landing .context-depth { padding-block: 40px; }
  #landing .context-depth-intro h2 { font-size: 34px; }
  #landing .context-detail h3 { font-size: 29px; }
  #landing .context-example { padding: 24px; }
  #landing .context-detail-copy > p { line-height: 1.65; }
  #landing .context-depth-outro { font-size: 16px; }
  #landing .header-inner { width: calc(100% - 32px); }
  #landing .header-inner > .brand { gap: 7px; font-size: 21px; }
  #landing .header-inner > .brand svg { width: 23px; height: 23px; }
  #landing .story-hero { padding-block: 36px 40px; }
  #landing .story-hero h1 { font-size: clamp(36px, 9.6vw, 46px); }
  #landing .story-hero > p { max-width: 33ch; font-size: 18px; line-height: 1.55; }
  #landing .story-hero > .hero-actions { margin-top: 24px; }
  #landing .story-step { gap: 20px; padding-block: 36px; }
  #landing .story-step h2 { font-size: 32px; line-height: 1.12; }
  #landing .story-step-copy > p { font-size: 16px; }
  #landing .memory-story .story-step h2 { grid-template-columns: 25px minmax(0, 1fr); gap: 10px; }
  #landing .story-step-number { padding-top: 7px; font-size: 13px; }
  #landing .memory-story .story-step-copy > p, #landing .memory-story .story-step-copy > .story-guide-link { margin-left: 35px; }
  #landing .transfer-actor { gap: 12px; }
  #landing .transfer-actor strong { font-size: 16px; }
  #landing .transfer-actor span { max-width: 22ch; font-size: 11px; }
  #landing .transfer-recipient p { margin-top: 0; font-size: 16px; }
  #landing .transfer-actor--question p { font-size: 21px; }
  #landing .transfer-missing { padding-block: 0; }
  #landing .story-step-copy > .story-example-label { font-size: 12px; }
  #landing .handover-card { padding: 20px; }
  #landing .handover-project { margin-bottom: 12px; }
  #landing .handover-row { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding-block: 12px; }
  #landing .handover-row dd { font-size: 15px; }
  #landing .story-guide-link { font-size: 14px; margin-top: 4px; }
  #landing .story-step--setup { gap: 28px; }
  #landing .story-setup-actions { margin-top: 18px; gap: 10px; font-size: 15px; }
  #landing .story-setup-panel .setup-prompt-field { height: auto; min-height: 220px; font-size: 16px; }
  #landing .story-setup-panel > .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #landing .story-visual *, #landing .story-stage * { animation: none !important; transition: none !important; filter: none !important; }
}
