/* Homepage refinement. Existing hero, shared routes and approval demo stay independent. */
.home .workflow-section { margin-top: 48px; background: #10120f; }
.home .workflow-steps button[aria-pressed="false"] small { display: none; }
.home .extraction { min-height: 520px; overflow: hidden; border: 0; }
.home .extraction::before { display: none; }
.home .extract-status { background: #10120f; padding-block: 14px; border-top: 1px solid var(--line); }
.home .extract-master { margin-top: 50px; width: min(92%, 480px); }
.home .extract-timeline { margin-top: 22px; }
/* An outgoing layer exits immediately; the incoming layer reveals after that exit.
   Visibility also removes inactive media from the accessibility tree. */
.home .extract-master,
.home .extract-cuts,
.home .extract-draft { visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 480ms var(--ease), visibility 0s; }
.home .extraction[data-stage="0"] .extract-master,
.home .extraction[data-stage="1"] .extract-cuts,
.home .extraction[data-stage="2"] .extract-cuts,
.home .extraction[data-stage="3"] .extract-draft { visibility: visible; opacity: 1; transition-delay: 160ms; }
.home .extraction[data-stage="0"] .extract-master { transform: none; }
.home .extract-cuts { top: 108px; left: 8%; width: 84%; gap: 12px; }
.home .extract-cuts .clip-art { min-width: 0; transition: opacity 160ms ease, transform 500ms var(--ease), visibility 0s; }
.home .extraction[data-stage="2"] .extract-cuts .clip-art:first-child { transform: translateX(calc(100% + 12px)) scale(1.12); outline: 1px solid var(--acid); outline-offset: 5px; }
.home .extraction[data-stage="2"] .extract-cuts .clip-art:not(:first-child) { transform: translateY(50px) scale(.8); }
.home .extract-draft { inset: 90px 14% auto; min-height: 300px; padding: 26px; flex-direction: column; justify-content: center; text-align: center; gap: 15px; }
.home .extract-draft > img { width: 95px; height: 169px; }
.home .extract-draft small { display: block; margin-top: 7px; }
.home .stage-label { color: #b4b8ac; }
.home .journey-window { padding-top: 24px; }
.home .journey-panel { transform: translateY(var(--unit-y, 0px)); }
.home .journey-panel > .clip-art,
.home .journey-panel > .master-art,
.home .journey-panel > .journey-verdict { transform: scale(var(--unit-scale, 1)); transform-origin: center; }
.home .journey-panel.is-current h3 { color: var(--acid); }
.home .journey-panel.is-current .clip-art { outline: 1px solid var(--acid); outline-offset: 4px; }
/* A paper editorial interval separates the production rail from the live demo. */
.home .creator-styles { width: 100%; max-width: none; padding: clamp(64px, 7vw, 112px) var(--gutter); color: var(--bg); background: var(--paper); }
.home .creator-editorial { display: block; max-width: 1560px; margin-inline: auto; }
.home .creator-style-copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8%; }
.home .creator-style-copy h2 { font-size: clamp(44px, 4.5vw, 70px); }
.home .creator-style-copy > p { color: #505548; max-width: 32ch; margin-block: 12px 24px; }
.home .creator-style-links { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.home .creator-style-links a { color: var(--bg); border-color: #b9bcaf; padding-block: 17px; }
.home .creator-style-links small, .home .style-link-label { color: #505548; }
.home .creator-style-links a:hover b { color: var(--bg); }
.home .creator-style-links a:hover { background: #e4e5da; padding-inline: 12px; }
.home .creator-styles .control-columns { max-width: 1560px; margin: 32px auto 0; padding-top: 24px; border-color: #b9bcaf; display: block; }
.home .creator-styles .control-columns p { max-width: 66ch; color: #505548; font-size: 14px; }
.home .creator-styles .control-columns a { color: var(--bg); }
.home .creator-styles :focus-visible { outline-color: var(--bg); }
/* The final lifestyle story has one source, one candidate formation, one selection. */
.payoff-section { background: #151811; position: relative; }
.payoff-sticky { padding-block: 72px 36px; }
.payoff-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.payoff-heading h2 { font-size: clamp(48px, 5vw, 78px); }
.payoff-heading h2 span { color: var(--muted); }
.payoff-heading p { max-width: 25ch; margin: 0; }
.payoff-stage { position: relative; height: clamp(340px, 33vw, 510px); isolation: isolate; }
.payoff-source { transform: translateY(var(--payoff-source-y, 0px)); position: absolute; width: 70%; height: calc(100% - 42px); left: 15%; top: 0; margin: 0; overflow: hidden; }
.payoff-source img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transform: scale(var(--source-scale, 1)); }
.payoff-source figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; padding: 18px 22px; font-size: 11px; background: #0b0c0ae8; }
.payoff-candidates { position: absolute; inset: 0 0 42px; display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 48px); perspective: 1200px; }
.payoff-cut { position: relative; flex: 0 0 auto; width: min(19%, 232px); height: 92%; border: 0; padding: 0; background: var(--bg); color: var(--paper); text-align: left; box-shadow: 12px 22px 32px #0005; transform: translateY(var(--cut-y, 0px)) rotate(var(--cut-r, 0deg)); }
.payoff-cut img { width: 100%; height: 100%; object-fit: cover; }
.payoff-cut::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#0009, transparent 28%, transparent 40%, #000e); pointer-events: none; }
.payoff-cut strong { position: absolute; left: 9%; right: 7%; bottom: 21%; z-index: 1; font: 800 clamp(28px, 3.7vw, 57px)/.93 var(--font-display); }
.payoff-time { position: absolute; z-index: 1; top: 16px; left: 9%; right: 9%; display: flex; justify-content: space-between; font-size: 10px; }
.payoff-pick, .payoff-approved { position: absolute; z-index: 1; inset: auto 0 0; padding: 13px 9%; display: flex; justify-content: space-between; align-items: center; font-size: 12px; min-height: 48px; }
.payoff-pick { background: var(--paper); color: var(--bg); }
.payoff-approved { background: var(--acid); color: var(--bg); display: none; font-weight: 600; }
.payoff-caption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.payoff-state { color: var(--paper); }
.payoff-source, .payoff-candidates { opacity: 0; visibility: hidden; transition: opacity 180ms, visibility 0s; }
.payoff-section[data-scene="0"] .payoff-source,
.payoff-section:not([data-scene="0"]) .payoff-candidates { opacity: 1; visibility: visible; transition-delay: 160ms; }
.payoff-cut { transition: transform 650ms var(--ease), opacity 160ms, visibility 0s; }
.payoff-section[data-scene="1"] .payoff-cut:nth-child(1) { --cut-r: -6deg; --cut-y: 8px; }
.payoff-section[data-scene="1"] .payoff-cut:nth-child(3) { --cut-r: 6deg; --cut-y: 8px; }
.payoff-section[data-scene="2"] .payoff-cut:not([aria-pressed="true"]) { opacity: 0; visibility: hidden; transform: scale(.8) translateY(40px); pointer-events: none; }
.payoff-section[data-scene="2"] .payoff-cut[aria-pressed="true"] { position: absolute; left: 50%; transform: translate(-50%, var(--payoff-selected-y, 0px)) scale(1.04); outline: 1px solid var(--acid); outline-offset: 7px; }
.payoff-section[data-scene="2"] .payoff-pick { display: none; }
.payoff-section[data-scene="2"] .payoff-approved { display: flex; }
.payoff-controls { display: flex; margin-top: 20px; border-top: 1px solid #464b3c; }
.payoff-controls button { flex: 1; background: none; border: 0; color: #b6bdab; text-align: left; padding: 18px 8px; min-height: 52px; font-size: 14px; }
.payoff-controls button span { margin-right: 12px; color: inherit; }
.payoff-controls button[aria-pressed="true"] { color: var(--acid); box-shadow: inset 0 1px var(--acid); }
/* The route fills once on scroll, then stops at the creator's draft boundary. */
.home .handoff-section { padding: 0; position: relative; background: var(--bg); }
.home .handoff-sticky { padding-block: 90px; min-height: 700px; }
.home .handoff-motion { padding-block: 0; }
.home .handoff-copy h2 { font-size: clamp(46px, 5.2vw, 82px); }
.home .handoff-copy h2 span { color: var(--paper); }
.home .delivery-rail { height: 180px; border: 0; margin: 18px 0 0; }
.handoff-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.handoff-route path { fill: none; stroke: var(--acid); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--route-progress, 1)); }
.home .delivery-clip { width: 54px; height: 96px; left: 8%; top: 0; animation: none; transform: translate(-50%, 0); opacity: 0; }
.home .delivery-clip img { width: 100%; height: 100%; object-fit: cover; }
.home .delivery-clip span { display: none; }
.home .delivery-label { position: absolute; top: 38px; right: 0; color: var(--muted); font-size: 10px; }
.home .inbox-surface { position: relative; padding: 26px; border-color: #424b33; transform: translateY(var(--inbox-y, 0px)); }
.home .inbox-preview { width: 64px; height: 100px; }
.home .inbox-preview img { width: 100%; height: 100%; object-fit: cover; }
.home .handoff-motion .inbox-content { min-height: 142px; }
.home .inbox-content { margin-top: 20px; padding-block: 20px; }
.home .creator-boundary { font-size: clamp(32px, 3.6vw, 58px); gap: 20px; color: var(--paper); }
.home .handoff-section[data-arrived="true"] .creator-boundary { color: var(--acid); }
.home .handoff-section[data-arrived="false"] .inbox-preview { visibility: hidden; }

.route-stop { display: block; margin: 24px -26px -26px; padding: 15px 26px; border-top: 1px solid #424b33; color: #b6bdab; font-size: 10px; letter-spacing: .06em; }
.home .handoff-section[data-arrived="true"] .route-stop { border-color: var(--acid); }
/* The five formats return only once together as a closing formation. */
.home .closing-formation { overflow: hidden; padding-block: clamp(76px, 9vw, 148px); }
.home .closing-formation > .shell { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.home .closing-formation h2 { font-size: clamp(52px, 6.5vw, 104px); }
.home .closing-formation h2 span { color: #405315; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; align-items: center; }
.home .closing-formation .closing-copy > p { font-size: 15px; margin-top: 24px; }
.final-formation { height: 360px; position: relative; }
.final-formation a { position: absolute; width: 28%; height: 260px; top: calc(35px + var(--unit) * 11px); left: calc(var(--unit) * 18%); transform: translateY(calc(var(--formation-depth, 0px) * (var(--unit) - 2))) rotate(calc((var(--unit) - 2) * 7deg)); box-shadow: 10px 18px 24px #18200040; transition: translate 220ms var(--ease); }
.final-formation a:hover, .final-formation a:focus-visible { translate: 0 -20px; z-index: 6; }
.final-formation img { width: 100%; height: 100%; object-fit: cover; }
.final-formation span { position: absolute; inset: auto 0 0; background: var(--bg); color: var(--paper); font-size: 9px; padding: 12px 8px; text-align: center; }
@media (min-width:1000px) and (min-height:740px) and (prefers-reduced-motion:no-preference) {
  .motion-enabled .home .workflow-section { height: 175vh; }
  .motion-enabled .payoff-section { height: 170vh; }
  .motion-enabled .payoff-sticky { position: sticky; top: 90px; height: calc(100vh - 90px); padding-block: 32px 20px; display: flex; flex-direction: column; justify-content: center; }
  .motion-enabled .payoff-heading h2 { font-size: clamp(48px, 4.4vw, 70px); }
  .motion-enabled .payoff-stage { height: min(44vh, 470px); }
  .motion-enabled .home .handoff-section { height: 160vh; }
  .motion-enabled .home .handoff-sticky { position: sticky; top: 90px; height: calc(100vh - 90px); min-height: 0; padding-block: 32px; }
}
@media (max-width:999px) {
  .home .creator-style-copy { column-gap: 32px; }
  .home .handoff-sticky { min-height: 0; }
  .home .closing-formation > .shell { grid-template-columns: 1fr; gap: 36px; }
  .final-formation { width: min(540px, 90%); height: 340px; margin-inline: auto; }
  .payoff-cut { width: 23%; }
  .payoff-heading h2 { font-size: 52px; }
}
@media (max-width:600px) {
  .home .workflow-section { margin-top: 30px; }
  .home .extraction { min-height: 430px; }
  .home .extract-master { margin-top: 44px; }
  .home .extract-cuts { top: 98px; gap: 8px; left: 4%; width: 92%; }
  .home .extraction[data-stage="2"] .extract-cuts .clip-art:first-child { transform: translateX(calc(100% + 8px)) scale(1.18); }
  .home .extract-draft { inset: 65px 12% auto; min-height: 285px; }
  .home .extract-status { font-size: 12px; min-height: 52px; }
  .home .creator-style-copy { display: block; }
  .home .creator-style-links a { padding-block: 16px; }
  .home .creator-style-links { margin-top: 28px; }
  .home .creator-styles .control-columns { margin-top: 24px; }
  .payoff-sticky { padding-block: 64px 28px; }
  .payoff-heading { display: block; margin-bottom: 28px; }
  .payoff-heading h2 { font-size: clamp(44px, 12vw, 60px); }
  .payoff-heading p { font-size: 16px; margin-top: 20px; }
  .payoff-heading p br::after { content: " "; }
  .payoff-heading p br { display: contents; }
  .payoff-stage { height: 390px; }
  .payoff-source { left: 0; width: 100%; height: 340px; }
  .payoff-source img { object-position: 52% center; }
  .payoff-source figcaption { padding: 14px 12px; font-size: 9px; }
  .payoff-candidates { align-items: center; gap: 9px; }
  .payoff-cut { width: calc((100% - 18px) / 3); height: 230px; box-shadow: 6px 12px 20px #0004; }
  .payoff-cut strong { font-size: 24px; bottom: 28%; }
  .payoff-time { font-size: 9px; flex-direction: column; gap: 4px; }
  .payoff-pick { padding: 12px 8px; font-size: 11px; }
  .payoff-pick .icon { width: 13px; }
  .payoff-approved { font-size: 11px; }
  .payoff-section[data-scene="1"] .payoff-cut { --cut-r: 0deg; --cut-y: 0px; }
  .payoff-section[data-scene="2"] .payoff-cut[aria-pressed="true"] { width: 180px; height: 310px; }
  .payoff-section[data-scene="2"] .payoff-cut strong { font-size: 42px; bottom: 22%; }
  .payoff-caption { flex-direction: column; gap: 6px; font-size: 9px; }
  .payoff-controls { gap: 8px; }
  .payoff-controls button { font-size: 12px; padding: 14px 0; }
  .payoff-controls button span { display: block; margin-bottom: 4px; }
  .home .handoff-sticky { display: block; padding-block: 64px; }
  .home .handoff-copy { display: block; }
  .home .handoff-copy h2 { font-size: 48px; }
  .home .handoff-copy p { font-size: 16px; margin-top: 24px; }
  .home .handoff-copy .text-link { margin-top: 10px; }
  .home .handoff-motion { margin-top: 32px; padding: 0; }
  .home .delivery-rail { height: 140px; }
  .home .inbox-surface { padding: 20px; }
  .home .inbox-content { flex-wrap: nowrap; gap: 12px; }
  .home .inbox-content > .sample-label { display: none; }
  .route-stop { margin: 22px -20px -20px; padding: 15px 20px; }
  .home .creator-boundary { font-size: 36px; }
  .home .closing-formation h2 { font-size: clamp(48px, 12.4vw, 70px); }
  .home .closing-formation > .shell { gap: 20px; }
  .home .closing-formation .closing-copy { display: block; }
  .closing-actions { display: flex; align-items: start; flex-direction: column; gap: 10px; }
  .final-formation { height: 265px; margin-top: 24px; }
  .final-formation a { height: 185px; }
  .final-formation span { font-size: 8px; padding-inline: 2px; }
}
@media (prefers-reduced-motion:reduce) {
  .payoff-source { transform: none; }
  .home .journey-panel, .home .journey-panel > *, .final-formation a { --unit-y: 0px !important; --unit-scale: 1 !important; --formation-depth: 0px !important; }
  .payoff-source img, .home .inbox-surface { transform: none; }
}

@media (min-width:1000px) and (min-height:740px) and (max-height:850px) {
  .home .delivery-rail { height: 140px; }
  .home .creator-boundary { margin-top: 20px; }
}
