.demo-brief { padding-block: 12px; border-bottom: 1px solid var(--line); }
.demo-brief p { margin-top: 6px; font-size: .875rem; }
.campaign-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; align-items: start; }
.campaign-layout figure { margin: 0; min-width: 0; }
.campaign-layout img { display: block; width: 100%; height: auto; border-radius: 4px; }
.campaign-layout figcaption { display: flex; flex-wrap: wrap; gap: 4px 8px; padding-top: 6px; font-size: .75rem; color: var(--muted); }
.campaign-note { font-size: .75rem; color: var(--muted); margin-top: 8px; text-align: center; }
.lifestyle-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-block: 0 12px; font-size: .75rem; }
.lifestyle-heading span { color: var(--muted); }
.lifestyle-heading svg { width: 15px; height: 15px; }
.lifestyle-frames { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.lifestyle-frames img { aspect-ratio: 1; object-fit: contain; }
.feed-phone { width: min(100%,300px); height: 548px; margin-inline: auto; display: flex; flex-direction: column; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); overflow: hidden; }
.phone-speaker { flex: 0 0 4px; width: 44px; margin: 0 auto 6px; border-radius: 4px; background: var(--ink); opacity: .65; }
.feed-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding: 10px; border-bottom: 1px solid var(--line); font-size: .75rem; }
.feed-header span { color: var(--accent-ink); }
.lifestyle-feed { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: auto; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; touch-action: pan-y pinch-zoom; }
.lenis .lifestyle-feed { overscroll-behavior: auto; }
.lifestyle-feed:focus-visible { outline-offset: -3px; }
.feed-post { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.feed-post:last-child { border-bottom: 0; }
.feed-post-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; padding: 12px 10px; font-size: .75rem; }
.feed-post-heading span { color: var(--muted); }
.feed-post img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.feed-actions { display: flex; justify-content: space-between; padding: 0 4px; }
.feed-actions button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; border-radius: 4px; color: var(--ink); cursor: pointer; }
.feed-actions button:hover { background: var(--surface); }
.feed-actions svg { width: 19px; height: 19px; }
.feed-actions button[aria-pressed="true"] { color: var(--accent-ink); }
.feed-actions button[aria-pressed="true"] svg { fill: currentColor; }
.feed-post-copy { margin: 0; padding-inline: 10px; font-size: .8125rem; }
.phone-home-indicator { flex: 0 0 4px; width: 64px; margin: 8px auto 0; border-radius: 4px; background: var(--ink); opacity: .65; }
html:not(.js-ready) .feed-actions { display: none; }
.campaign-copy { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.campaign-copy p { margin-top: 6px; font-size: .875rem; }
.demo-review, .demo-result { display: flex; align-items: flex-start; gap: 8px; padding-block: 12px; margin-top: 10px; border-top: 1px solid var(--line); font-size: .75rem; }
.demo-result { flex-direction: column; gap: 4px; }
.demo-review svg, .evidence-note svg { width: 16px; height: 16px; flex: 0 0 auto; }
.research-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; margin-top: 16px; }
.research-sources > strong { font-size: .875rem; }
.research-sources details { padding-block: 10px; border-bottom: 1px solid var(--line); font-size: .75rem; }
.research-sources summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; cursor: pointer; }
.research-sources summary svg { width: 14px; height: 14px; }
.research-sources summary { list-style: none; }
.research-sources summary::-webkit-details-marker { display: none; }
.research-sources details[open] summary svg { transform: rotate(45deg); }
.research-sources details p { margin-top: 8px; }
.research-brief h5 { margin-block: 8px; font-size: 1rem; }
.research-brief p { font-size: .875rem; }
.evidence-note { display: flex; gap: 8px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.workflow-lanes { list-style: none; padding: 0; display: grid; gap: 0; }
.workflow-lanes li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.workflow-lanes li > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.workflow-lanes strong, .workflow-lanes span { display: block; font-size: .875rem; }
.workflow-lanes span { color: var(--muted); margin-top: 4px; }
.workflow-lanes .workflow-exception { padding-left: 18px; border-left: 2px solid var(--accent); }
[data-example-stage] { transition: background-color 180ms ease, outline-color 180ms ease; }
[data-stage-state="active"] { background-color: #e7eef4; outline: 1px solid #a5b8c8; outline-offset: 3px; }
[data-stage-state="done"] { outline-color: transparent; }
.screen-picker { display: none; }
.screen-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.screen { container-type: inline-size; }
.feature-panel .context-row { display: flex; }
.feature-panel .source-note { display: flex; }
.scene-crop--content-engine { background-position: 42% 62%; }
.scene-crop--research { background-position: 22% 64%; }
.screen-tabs button { min-width: 0; }
.hero-screen > .screen { display: grid; grid-template-columns: minmax(0,1fr); align-content: start; }
.hero-screen .screen-chrome { grid-row: 1; }
.hero-screen .screen-tabs, .hero-screen .screen-picker { grid-row: 2; }
.hero-screen .screen-pane { grid-row: 3; grid-column: 1; min-width: 0; align-self: start; }
.hero-screen .screen-pane[hidden] { display: none !important; }
.hero-screen .screen-content { min-height: 0; }
@container (max-width: 520px) {
  .campaign-layout { grid-template-columns: minmax(0,1fr); }
  .campaign-output { width: 100%; max-width: 360px; justify-self: center; }
}
@media (max-width: 850px) {
  .campaign-layout, .research-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
  .screen-tabs { display: none; }
  .screen-picker { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .screen-picker select { width: 100%; min-height: 44px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 8px; }
}
html:not(.js-ready) .screen-picker { display: none; }
@media (prefers-reduced-motion: reduce) {
  [data-example-stage] { transition: none; }
}

/* Reserve content during playback; only emphasis and connector progress change. */
.workflow-lanes li { position: relative; }
.workflow-lanes li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 38px; bottom: -9px; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 280ms ease; }
.workflow-lanes li[data-stage-state="done"]::after { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .workflow-lanes li::after { transition: none; }
}

/* Keep the foreground plate beyond the section edge during upward travel. */
.opening-scene .scene-foreground { bottom: -24px; }
.closing .scene-foreground { height: calc(100% + 24px); }
.closing .booking-support { width: fit-content; max-width: 100%; margin-inline: auto; padding: 6px 12px; border-radius: 6px; background: color-mix(in srgb, var(--paper) 88%, transparent); }

/* Terrain clearance grows with enlarged text; normal-size padding is unchanged. */
.hero-screen > .screen { padding-bottom: max(120px, 7.5rem); }
@media (max-width: 850px) {
  .hero-screen > .screen { padding-bottom: max(112px, 7rem); }
}
