/* Fruit Up Daily motion artwork. Load after app.css and clean-app.css.
   Member-requested editorial scene: one 12s pass, then a still hold. This
   bounded media timing is separate from the shared interaction token tiers.
   The message uses their non-overshooting entry easing and duration tiers. */
.today-brand-artwork {
  --today-artwork-pan-duration: 12s;
  --today-message-duration: calc(var(--motion-duration-large) + var(--motion-duration-standard));
  --today-message-stagger: 300ms;
  --artwork-paper: #f7f7ef;
  --artwork-ink: #203c2c;
  --artwork-muted: #475e4e;
  --artwork-accent: #365b49;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid #dce2d8;
  border-radius: 16px;
  background: var(--artwork-paper);
  color: var(--artwork-ink);
  box-shadow: none;
}
.today-brand-artwork[data-artwork-palette="olive"] { --artwork-paper: #f7f7ee; --artwork-ink: #35402a; --artwork-muted: #56604a; --artwork-accent: #58623c; }
.today-brand-artwork[data-artwork-palette="sand"] { --artwork-paper: #faf6ed; --artwork-ink: #453c2f; --artwork-muted: #665b4c; --artwork-accent: #756044; }
.today-brand-artwork[data-artwork-palette="terracotta"] { --artwork-paper: #faf3ee; --artwork-ink: #4c322b; --artwork-muted: #6d5148; --artwork-accent: #8a503f; }
.today-brand-artwork[data-artwork-palette="charcoal"] { --artwork-paper: #f4f5f1; --artwork-ink: #293c38; --artwork-muted: #52605a; --artwork-accent: #475251; }
.today-artwork-stage {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--artwork-paper);
}
.today-brand-artwork .today-artwork-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  transform-origin: 74% 52%;
}
/* The soft paper scrim keeps actual text readable over every photo plate. */
.today-artwork-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #f7f7ef 0%, rgba(247, 247, 239, .97) 24%, rgba(247, 247, 239, .93) 48%, rgba(247, 247, 239, .88) 57%, rgba(247, 247, 239, .22) 70%, transparent 82%);
  background: linear-gradient(90deg, var(--artwork-paper) 0%, color-mix(in srgb, var(--artwork-paper) 97%, transparent) 24%, color-mix(in srgb, var(--artwork-paper) 93%, transparent) 48%, color-mix(in srgb, var(--artwork-paper) 88%, transparent) 57%, color-mix(in srgb, var(--artwork-paper) 22%, transparent) 70%, transparent 82%);
}
.today-brand-artwork .today-artwork-logo {
  position: absolute;
  z-index: 1;
  top: -4.5%;
  left: 6.5%;
  display: block;
  width: 20%;
  max-width: 320px;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  /* The approved PNG contains generous transparent padding. The whole mark
     and signature remain visible; the image itself is not cropped. */
}
.today-artwork-message {
  position: absolute;
  z-index: 1;
  left: 7%;
  bottom: 15%;
  width: 55%;
  color: var(--artwork-ink);
}
.today-artwork-message h2 {
  margin: 0;
  color: var(--artwork-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 32px;
  font-size: clamp(22px, 6.8cqi, 100px);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
  max-width: 13em;
}
.today-artwork-message p {
  margin: 14px 0 0;
  color: var(--artwork-muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-size: clamp(12px, 2.8cqi, 42px);
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: -.01em;
  max-width: min(29em, 90%);
}
.today-artwork-controls {
  display: none !important;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 15px 0 20px;
  border-top: 1px solid color-mix(in srgb, var(--artwork-accent) 15%, transparent);
  background: var(--artwork-paper);
  color: var(--artwork-muted);
  font-size: 12px;
  line-height: 1.3;
}
.today-artwork-controls button {
  min-width: 98px;
  min-height: 44px;
  padding: 8px 6px;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  color: var(--artwork-accent);
  background: transparent;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background-color var(--motion-duration-quick) var(--motion-ease-standard);
}
.today-artwork-controls button:hover { background: color-mix(in srgb, var(--artwork-accent) 8%, transparent); transform: none; box-shadow: none; }
.today-artwork-controls button:focus-visible { outline: 2px solid var(--artwork-accent); outline-offset: -3px; }
html[data-theme="dark"] .today-brand-artwork {
  border-color: var(--clean-line, #39413a);
  background: var(--clean-surface, #202722);
}
html[data-theme="dark"] .today-artwork-controls {
  background: var(--clean-surface, #202722);
  color: var(--clean-muted, #b3bcb3);
  border-top-color: var(--clean-line, #39413a);
}
html[data-theme="dark"] .today-artwork-controls button {
  color: var(--clean-accent-text, #bdd2c1);
}
.today-artwork-stage::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 28% 32%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 54%);
  animation-name: fruitup-today-ambient-sheen;
  animation-duration: var(--today-artwork-pan-duration);
  animation-timing-function: var(--motion-ease-linear);
  animation-iteration-count: infinite;
}
.today-brand-artwork:is([data-motion-state="playing"], [data-motion-state="finished"], [data-motion-state="paused"]) .today-artwork-photo {
  animation-duration: var(--today-artwork-pan-duration);
  animation-timing-function: var(--motion-ease-linear);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-play-state: running;
}
.today-brand-artwork:is([data-motion-state="playing"], [data-motion-state="finished"], [data-motion-state="paused"]) [data-today-artwork-title],
.today-brand-artwork:is([data-motion-state="playing"], [data-motion-state="finished"], [data-motion-state="paused"]) [data-today-artwork-copy] {
  animation-duration: var(--today-message-duration);
  animation-timing-function: var(--motion-ease-enter);
  animation-iteration-count: 1;
  animation-fill-mode: both;
  animation-play-state: running;
}
.today-brand-artwork:is([data-motion-state="playing"], [data-motion-state="finished"], [data-motion-state="paused"])[data-motion-cycle="a"] .today-artwork-photo { animation-name: fruitup-today-photo-a; }
.today-brand-artwork:is([data-motion-state="playing"], [data-motion-state="finished"], [data-motion-state="paused"])[data-motion-cycle="b"] .today-artwork-photo { animation-name: fruitup-today-photo-b; }
.today-brand-artwork:is([data-motion-state="playing"], [data-motion-state="finished"], [data-motion-state="paused"])[data-motion-cycle="a"] [data-today-artwork-title] { animation-name: fruitup-today-title-a; }
.today-brand-artwork:is([data-motion-state="playing"], [data-motion-state="finished"], [data-motion-state="paused"])[data-motion-cycle="b"] [data-today-artwork-title] { animation-name: fruitup-today-title-b; }
.today-brand-artwork:is([data-motion-state="playing"], [data-motion-state="finished"], [data-motion-state="paused"])[data-motion-cycle="a"] [data-today-artwork-copy] { animation-name: fruitup-today-copy-a; }
.today-brand-artwork:is([data-motion-state="playing"], [data-motion-state="finished"], [data-motion-state="paused"])[data-motion-cycle="b"] [data-today-artwork-copy] { animation-name: fruitup-today-copy-b; }
.today-brand-artwork [data-today-artwork-copy] { animation-delay: var(--today-message-stagger); }
/* Pausing during the entrance still leaves the full message available. */
.today-brand-artwork[data-motion-state="paused"] [data-today-artwork-title],
.today-brand-artwork[data-motion-state="paused"] [data-today-artwork-copy] { opacity: 1 !important; transform: none !important; }
.today-brand-artwork[data-today-artwork-legacy="true"] .today-artwork-stage { aspect-ratio: 1672 / 941; }
.today-brand-artwork[data-today-artwork-legacy="true"] .today-artwork-photo { object-fit: contain; animation: none; }
.today-brand-artwork[data-today-artwork-legacy="true"] .today-artwork-logo,
.today-brand-artwork[data-today-artwork-legacy="true"] .today-artwork-message,
.today-brand-artwork[data-today-artwork-legacy="true"] .today-artwork-stage::before,
.today-brand-artwork[data-today-artwork-legacy="true"] .today-artwork-stage::after { display: none; }
.today-brand-artwork .today-brand-artwork-fallback { position: absolute; inset: 0; display: grid; place-content: center; padding: 24px; color: var(--artwork-ink); text-align: center; font-weight: 600; }
.today-brand-artwork [hidden] { display: none !important; }
@keyframes fruitup-today-photo-a {
  0% { transform: scale(1.06) translate3d(-1.2%, -0.4%, 0); }
  50% { transform: scale(1.01) translate3d(0.8%, 0.4%, 0); }
  100% { transform: scale(1.06) translate3d(-1.2%, -0.4%, 0); }
}
@keyframes fruitup-today-photo-b {
  0% { transform: scale(1.06) translate3d(-1.2%, -0.4%, 0); }
  50% { transform: scale(1.01) translate3d(0.8%, 0.4%, 0); }
  100% { transform: scale(1.06) translate3d(-1.2%, -0.4%, 0); }
}
@keyframes fruitup-today-ambient-sheen {
  0% { transform: translate3d(-4%, -2%, 0) scale(1); opacity: 0.55; }
  50% { transform: translate3d(6%, 3%, 0) scale(1.08); opacity: 0.9; }
  100% { transform: translate3d(-4%, -2%, 0) scale(1); opacity: 0.55; }
}
@keyframes fruitup-today-title-a { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fruitup-today-title-b { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fruitup-today-copy-a { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fruitup-today-copy-b { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
/* Keep the member's check-in within reach on wider app screens. Shared
   standalone cards and exported posters retain their full 16:9 composition. */
@media (min-width: 800px) {
  .app-shell .today-artwork-stage { aspect-ratio: auto; height: clamp(320px, 34vw, 380px); }
  .app-shell .today-brand-artwork .today-artwork-logo { width: 16%; max-width: 170px; top: -4.5%; }
  .app-shell .today-artwork-message { width: 56%; bottom: 14%; }
  .app-shell .today-artwork-message h2 { font-size: clamp(30px, 4.4cqi, 48px); }
  .app-shell .today-artwork-message p { font-size: clamp(14px, 1.8cqi, 20px); margin-top: 12px; }
}
@media (min-width: 521px) and (max-width: 799px) {
  .today-artwork-message h2 { font-size: clamp(30px, 6cqi, 48px); }
  .today-artwork-message p { font-size: clamp(14px, 2.6cqi, 20px); }
}
@media (max-width: 520px) {
  .today-artwork-stage { aspect-ratio: 4 / 3; }
  .today-brand-artwork .today-artwork-photo { object-position: 65% center; }
  .today-artwork-message { width: 78%; bottom: 15%; }
  .today-artwork-message h2 { font-size: clamp(22px, 6.3cqi, 32px); max-width: 13em; }
  .today-artwork-message p { margin-top: 11px; font-size: clamp(12px, 3.35cqi, 15px); max-width: 25em; }
  .today-brand-artwork .today-artwork-logo { width: 35%; }
  .today-artwork-stage::after {
    background: linear-gradient(0deg, #f7f7ef 0%, rgba(247, 247, 239, .96) 35%, rgba(247, 247, 239, .88) 52%, rgba(247, 247, 239, .20) 76%, transparent 100%), linear-gradient(90deg, #f7f7ef 0%, rgba(247, 247, 239, .80) 27%, transparent 58%);
    background: linear-gradient(0deg, var(--artwork-paper) 0%, color-mix(in srgb, var(--artwork-paper) 96%, transparent) 35%, color-mix(in srgb, var(--artwork-paper) 88%, transparent) 52%, color-mix(in srgb, var(--artwork-paper) 20%, transparent) 76%, transparent 100%), linear-gradient(90deg, var(--artwork-paper) 0%, color-mix(in srgb, var(--artwork-paper) 80%, transparent) 27%, transparent 58%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .today-artwork-controls button { transition: none !important; }
  .today-brand-artwork:not([data-motion-opt-in="true"]) .today-artwork-photo,
  .today-brand-artwork:not([data-motion-opt-in="true"]) [data-today-artwork-title],
  .today-brand-artwork:not([data-motion-opt-in="true"]) [data-today-artwork-copy] { animation: none !important; transform: none !important; opacity: 1 !important; }
  /* An explicit Play tap opts this single media card in; the rest of the
     app keeps its existing reduced-motion treatment. */
  .today-brand-artwork[data-motion-opt-in="true"]:is([data-motion-state="playing"], [data-motion-state="paused"]) .today-artwork-photo { animation-duration: var(--today-artwork-pan-duration) !important; }
  .today-brand-artwork[data-motion-opt-in="true"]:is([data-motion-state="playing"], [data-motion-state="paused"]) [data-today-artwork-title],
  .today-brand-artwork[data-motion-opt-in="true"]:is([data-motion-state="playing"], [data-motion-state="paused"]) [data-today-artwork-copy] { animation-duration: var(--today-message-duration) !important; }
}
