/* STASH finishing pass: readable controls, predictable motion, resilient layouts. */
:root {
  --ui-ease: cubic-bezier(.2,.75,.25,1);
  --ui-duration: 180ms;
}
body {max-width:1920px;margin-inline:auto}
.clean-media {overflow:hidden;position:relative}
.clean-media>img,.source-visual.clean-media>img {display:block;width:100%;height:100%;object-fit:cover;object-position:center;max-width:100%;left:0;top:0;transform:none}
.source-screen-image.clean-media {position:absolute;inset:12cqw 0 0}
.phone-find-media.clean-media>img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:none}
.source-visual.clean-media>img {object-position:center 42%}
.saved-notes-label {padding:14px 16px;margin:18px 0;font-size:13px;line-height:1.7;background:#ede8df;border-left:3px solid #ba315a;border-radius:4px;color:#534247}
.device-save-action {cursor:pointer;justify-content:center;display:flex;align-items:center;gap:2cqw;background:var(--stash,#ff356b)}
.device-screen[aria-hidden="true"] {pointer-events:none}
.device-screen:not([aria-hidden="true"]) {pointer-events:auto}
.is-saved .phone-saved-status svg {stroke-dasharray:28;animation:saved-check 450ms ease-out both}
.is-saved .phone-saved-status {animation:saved-confirm 450ms ease-out both}
@keyframes saved-check {from{stroke-dashoffset:28}to{stroke-dashoffset:0}}
@keyframes saved-confirm {from{opacity:.35;translate:0 3px}to{opacity:1;translate:0 0}}

/* Keep the real website controls comfortable; the phone remains an illustration. */
.hero-description {font-size:15px;line-height:1.8}
.hero-small {font-size:12px;line-height:1.7}
.hero-small a {display:inline-flex;align-items:center;min-height:44px}
.hero-story-copy>span {font-size:10px;line-height:1.6}
.hero-story-copy>p {font-size:12px;line-height:1.7}
.section-topline .eyebrow,.section-topline>span {font-size:10px;line-height:1.6}
.story-heading>p,.library-heading p {font-size:15px;line-height:1.8}
.try-label {font-size:10px;line-height:1.7}
.scene-controls {gap:8px}
.scene-controls button {min-height:44px;padding:10px 6px;font-size:12px;line-height:1.4;color:#76676c;gap:6px}
.scene-controls button>span {font-size:10px;opacity:1;color:#8b7880}
.scene-controls button[aria-pressed=true] {color:#a2224b}
.story-switch button {font-size:13px;line-height:1.6;min-height:52px}
.story-switch button span {font-size:10px}
.header-cta {min-height:44px;font-size:12px}
.site-header nav a {min-height:44px;display:inline-flex;align-items:center}
.action-card .button,.runner-buttons .button,.dialog-action .button {min-height:48px;font-size:13px;line-height:1.5;white-space:normal}
.action-card-header .icon-button,.dialog-heading .icon-button {width:44px;height:44px;flex-shrink:0}
.text-button,.runner-under button,.recipe-full-link {min-height:44px;font-size:12px;line-height:1.6}
.mode-switch-small {gap:8px}
.mode-switch-small button {min-height:44px;font-size:12px;line-height:1.4;padding:10px 12px}
.creator-credit,.workout-preview-title .creator-credit {font-size:12px;line-height:1.7;color:#a5a3ad}
.action-title .eyebrow,.runner-top .eyebrow {font-size:10px;line-height:1.7}
.action-footnote,.workout-start>p {font-size:12px;line-height:1.7;color:#aaa29b}
.ingredients-preview .list-heading {font-size:12px;line-height:1.7}
.ingredients-preview label {font-size:13px;line-height:1.6;min-height:46px}
.ingredients-preview small {font-size:11px;line-height:1.5;max-width:90px;color:#d4b46e}
.ingredients-preview .ingredients label:nth-child(n+5) {display:flex}
.exercise-list label {font-size:13px;line-height:1.55;min-height:48px}
.exercise-list small {font-size:11px;line-height:1.5}
.exercise-list label b {font-size:11px;min-width:25px;height:25px}
.workout-facts {font-size:11px;line-height:1.6;flex-wrap:wrap;gap:8px 16px}
.runner-round {font-size:11px;line-height:1.6;gap:12px}
.runner-cue {font-size:13px;line-height:1.7}
.runner-clock-copy {font-size:10px;line-height:1.7;color:#e8a298}
.runner-clock-copy>strong {font-size:14px;line-height:1.6}
.cook-stage .step-count {font-size:12px;line-height:1.7}
.cook-stage .cook-instruction {font-size:16px;line-height:1.85;min-height:140px}
.source-bottom>a {font-size:12px;min-height:44px;display:inline-flex;align-items:center}
.photo-disclosure {font-size:10px}

/* Library controls and captions keep their hierarchy on small and dense screens. */
.library-toolbar {gap:16px}
.library-search {min-height:46px;min-width:0;max-width:330px}
.library-search input {font-size:16px;line-height:1.5;min-height:24px}
.library-search svg {width:17px;height:17px;flex-shrink:0}
.library-search input::placeholder {color:#a5a5b0}
.ghost-toggle {min-height:44px;padding:10px 3px 10px 7px;font-size:12px;line-height:1.5;gap:8px}
.ghost-toggle>svg {height:17px;width:17px;flex-shrink:0}
.library-filters {gap:6px;flex-wrap:wrap}
.library-filters button {font-size:12px;line-height:1.5;min-height:44px;padding:10px 14px}
.library-filters button span {font-size:10px;padding:2px 5px}
.library-brand>span {font-size:11px;color:#aaa8b3}
.card-info>p {font-size:14px;line-height:1.5;min-height:42px}
.card-info>span {font-size:11px;line-height:1.6;min-height:35px;color:#aaa8b3}
.card-bottom {font-size:11px;line-height:1.6;color:#b7a8b2;gap:8px}
.cover-category {font-size:9px;line-height:1.4;padding:5px 7px;gap:4px}
.cover-open {font-size:12px}
.private-label {font-size:9px;line-height:1.5;color:#c3aaba}
.private-caption {font-size:11px;line-height:1.6;color:#bba6b7}
.private-status {font-size:8px;line-height:1.5;color:#bd9cac;letter-spacing:.02em}
.library-status,.library-status>span:last-child {font-size:11px;line-height:1.6;color:#a5a0ad}
.privacy-line h3 {font-size:15px;line-height:1.6}
.privacy-line p {font-size:13px;line-height:1.8}
.privacy-line>span:last-child {font-size:12px;line-height:1.6}
.faq-list summary {font-size:16px;line-height:1.65}
.faq-list details p {font-size:14px;line-height:1.85}
.faq>div>a {font-size:13px;line-height:1.6;min-height:44px;display:inline-flex;align-items:center}
.closing-action>span,.closing-bottom {font-size:12px;line-height:1.7}
.quiet-footer .footer-top>p,.quiet-footer .footer-bottom {font-size:11px;line-height:1.7}
.footer-bottom a {min-height:44px;display:inline-flex;align-items:center}
.back-top {width:44px;height:44px;flex-shrink:0}
.dialog-description,.dialog-full-list>div,.dialog-step-list {font-size:14px;line-height:1.8}
.dialog-full-list small,.dialog-caption {font-size:12px;line-height:1.7}
.dialog-source {font-size:13px;min-height:44px;line-height:1.6}

/* One movement per interaction; preserve each authentic image's crop at rest. */
.library-card,.library-card:hover {translate:none;transform:none}
.card-photo {--cover-rest:scale(1);--cover-hover:scale(1.02)}
.card-photo.crop-alex {--cover-rest:translateY(-44.8%);--cover-hover:translateY(-44.8%) scale(1.02)}
.card-photo.crop-tiktok {--cover-rest:translateY(-32.727%);--cover-hover:translateY(-32.727%) scale(1.02)}
.card-photo.youtube-cover {--cover-rest:scale(1.72);--cover-hover:scale(1.75)}
.library-grid .library-card .card-photo>img,.library-grid .library-card:hover .card-photo>img {transform:var(--cover-rest);transition:transform 360ms var(--ui-ease)}
.library-card {transition:transform 220ms var(--ui-ease),border-color var(--ui-duration),box-shadow 220ms var(--ui-ease)}
.button,.header-cta,.ghost-toggle,.library-filters button,.scene-controls button,.mode-switch-small button {transition:background var(--ui-duration),color var(--ui-duration),border-color var(--ui-duration),transform var(--ui-duration) var(--ui-ease),box-shadow var(--ui-duration)}
.button:hover {transform:none}
.button:hover svg:last-child {transform:none}
.button:active,.header-cta:active,.library-filters button:active,.mode-switch-small button:active {transform:scale(.985)}
.library-card:active {transform:scale(.995)}
button:focus-visible,a:focus-visible,summary:focus-visible {outline:3px solid #bb2351;outline-offset:4px}
.action-card button:focus-visible,.library-shell button:focus-visible,.story-section a:focus-visible,.story-switch button:focus-visible {outline-color:#ff799e}
.library-search:focus-within {outline:2px solid #ff799e;outline-offset:3px}
@media(hover:hover) and (pointer:fine) {
  .library-card:hover {transform:translateY(-2px);box-shadow:0 12px 25px #0003}
  .library-grid .library-card:hover .card-photo>img {transform:var(--cover-hover)}
  .button:hover {transform:translateY(-1px)}
  .button:active {transform:translateY(0) scale(.985)}
}

/* Mid-width and square screens keep usable panels without a compressed bridge. */
@media(min-width:901px) {
  .story-demo {align-items:stretch}
  .source-card {height:auto;min-height:620px}
  .action-card {height:auto;min-height:620px}
}
@media(max-width:1100px) {
  .library-toolbar {display:grid;grid-template-columns:1fr auto;gap:12px 16px;padding:18px 0}
  .library-search {grid-row:2;grid-column:1/-1;max-width:none;width:100%}
  .ghost-toggle {grid-row:1;grid-column:2}
  .library-brand>span {display:none}
}
@media(min-width:651px) and (max-width:900px) {
  .hero-description {font-size:14px}
  .hero-small {font-size:11px;gap:8px;flex-wrap:wrap}
  .hero-small .small-divider {display:none}
  .scene-progress {left:0;right:0}
  .scene-controls {gap:3px}
  .scene-controls button {font-size:11px;padding:10px 3px;gap:4px}
  .scene-controls button>span {font-size:9px}
  .story-demo {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:stretch}
  .story-bridge {display:none}
  .source-card {height:auto;min-height:660px}
  .action-card {height:auto;min-height:660px;padding:22px 20px}
  .action-card[data-mode=workout] .action-title h3 {font-size:29px}
  .ingredients-preview .ingredients {display:block}
  .ingredients-preview label {font-size:12px;min-height:44px}
  .ingredients-preview small {font-size:10px;max-width:90px}
  .exercise-list label {font-size:12px;padding:9px;gap:7px}
  .exercise-list small {font-size:10px}
  .runner-clock {gap:14px}
  .runner-clock-copy>strong {font-size:12px}
  .runner-buttons {flex-wrap:wrap}
  .runner-buttons .button {font-size:12px;min-width:115px}
  .runner-round {font-size:10px}
  .source-bottom h3 {font-size:36px}
  .source-bottom>a {font-size:11px}
}

/* Preserve the desktop scroll runway on short windows and zoomed displays. */
@media(min-width:901px) and (max-height:760px) {
  .hero h1 {font-size:clamp(64px,6.6vw,100px)}
  .hero-bottom {margin-top:26px}
}
@media(max-width:650px) {
  .hero-description {font-size:14px;line-height:1.85;max-width:34ch}
  .hero-small {font-size:12px;gap:10px}
  .hero-story-copy>span {font-size:10px}
  .hero-story-copy>p {font-size:12px}
  .hero-bottom {font-size:11px;gap:16px}
  .hero-bottom>span {font-size:11px}
  .platforms {font-size:11px;gap:18px;flex-wrap:wrap}
  .section-topline .eyebrow {font-size:9px}
  .section-topline>span {display:none}
  .story-heading>p,.library-heading p {font-size:14px}
  .try-label {font-size:9px}
  .scene-progress {left:0;right:0}
  .scene-controls button {font-size:11px;padding:10px 3px;gap:5px;min-height:44px}
  .scene-controls button>span {font-size:9px}
  .story-switch {gap:20px}
  .story-switch button {font-size:12px;gap:9px;flex:1;justify-content:space-between}
  .story-switch button span {font-size:9px}
  .action-card {height:auto;min-height:0;padding:24px}
  .ingredients-preview label {font-size:12px;min-height:48px}
  .ingredients-preview small {font-size:11px;max-width:95px}
  .exercise-list label {font-size:12px;gap:8px}
  .exercise-list small {font-size:10px}
  .runner-round {font-size:10px;flex-wrap:wrap;gap:6px}
  .runner-clock-copy {font-size:10px}
  .runner-clock-copy>strong {font-size:13px}
  .runner-buttons {flex-wrap:wrap}
  .runner-buttons .button {font-size:12px;min-width:110px}
  .library-toolbar {gap:10px}
  .library-brand h3 {font-size:14px}
  .ghost-toggle {font-size:12px;gap:6px;padding:8px 0}
  .library-filters {gap:4px;margin-right:0;padding-right:0}
  .library-filters button {font-size:11px;padding:10px;min-height:44px}
  .library-filters button span {font-size:9px;margin-left:4px}
  .card-info {padding:12px 10px}
  .card-info>p {font-size:13px;line-height:1.5;min-height:58px}
  .card-info>span {font-size:10px;min-height:33px}
  .card-bottom {font-size:10px;min-height:34px;gap:5px}
  .cover-category {font-size:8px;left:7px;top:7px;padding:4px 5px;gap:3px}
  .cover-category svg {width:9px;height:9px}
  .private-cover {padding:12px}
  .private-label {font-size:7px;gap:4px}
  .private-caption {font-size:9px;line-height:1.6}
  .private-status {font-size:7px;line-height:1.5}
  .vault-folder {flex-shrink:0;margin-top:22px;margin-bottom:12px}
  .private-cover p {font-size:18px}
  .library-status,.library-status>span:last-child {font-size:10px;line-height:1.6}
  .privacy-line h3 {font-size:14px}
  .privacy-line p {font-size:12px}
  .faq-list summary {font-size:14px}
  .faq-list details p {font-size:13px}
  .closing-top .eyebrow {font-size:9px}
  .closing-action .button {font-size:12px;white-space:normal}
  .closing-action>span,.closing-bottom {font-size:11px}
  .quiet-footer .footer-top>p {font-size:10px;max-width:175px}
  .quiet-footer .footer-bottom {font-size:10px;gap:10px}
  .footer-bottom>div {gap:14px;flex-wrap:wrap}
  .dialog-description,.dialog-full-list>div,.dialog-step-list {font-size:14px}
  .dialog-full-list small,.dialog-caption {font-size:12px}
}
@media(max-width:360px) {
  .hero h1 {font-size:clamp(43px,14vw,51px)}
  .hero-small {flex-wrap:wrap;gap:8px}
  .hero-small .small-divider {display:none}
  .scene-controls {gap:3px}
  .scene-controls button {font-size:11px;gap:4px}
  .story-switch {gap:14px}
  .story-switch button {font-size:11px}
  .action-card {padding:21px 18px}
  .action-card[data-mode=workout] .action-title h3 {font-size:27px}
  .library-brand {gap:5px}
  .library-brand h3 {font-size:13px}
  .ghost-toggle {font-size:11px;gap:5px}
  .library-filters button {font-size:11px;padding:9px}
  .library-filters button span {font-size:8px}
  .card-info {padding:11px 8px}
  .card-info>p {font-size:12px;min-height:54px}
  .card-info>span {font-size:10px}
  .card-bottom {font-size:9px}
  .private-label {font-size:6px}
  .private-cover {padding:10px}
  .private-cover p {font-size:16px}
  .private-caption {font-size:8px}
  .private-status {font-size:6px}
  .vault-folder {width:58px;height:42px;margin-top:18px;margin-bottom:9px}
}

@media(prefers-reduced-motion:reduce) {
  .phone-saved-status,.phone-saved-status svg {animation:none;translate:none}
  .library-card,.library-card:hover,.library-card:active,.button,.button:hover,.button:active,.header-cta:active,.library-filters button:active,.mode-switch-small button:active {transform:none;translate:none;transition:none}
  .library-grid .library-card .card-photo>img,.library-grid .library-card:hover .card-photo>img {transform:var(--cover-rest);transition:none}
  .cover-open {transform:none;transition:none}
  .device-object,.orbit-save {will-change:auto}
}
