/* =====================================================================
   Menu Studio TV Display v5.8.5 · standalone mini-app full-photo
   Primary: Poco Pad M1 / Android portrait 800x1200
   Secondary: iPhone portrait · TV landscape 1920x1080
   Display-only. No cart, no checkout. Isolated from kiosk/index CSS layers.
   ===================================================================== */

:root {
  --bg: #1A0F06;
  --surface: #22140A;
  --surface-2: #2C1A0E;
  --fg: #F5EDD6;
  --fg-soft: #EAD9B8;
  --muted: rgba(245, 237, 214, .66);
  --border: rgba(245, 237, 214, .13);
  --accent: #D4A96A;
  --accent-ink: #1A0F06;
  --cream: #F5EDD6;
  --coffee: #8B5E3C;
  --radius: 18px;
  --bar-h: 68px;
  --progress-h: 5px;
  --font-display: Iowan Old Style, Charter, Georgia, Times New Roman, serif;
  --font-body: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@supports (color: oklch(13% 0.018 50)) {
  :root {
    --bg: oklch(13% 0.018 50);
    --surface: oklch(19% 0.022 50);
    --surface-2: oklch(25% 0.022 50);
    --fg: oklch(96% 0.016 75);
    --fg-soft: oklch(82% 0.016 70);
    --accent: oklch(74% 0.14 50);
    --accent-ink: oklch(13% 0.02 50);
  }
}

[data-theme="light"] {
  --bg: #F5EDD6;
  --surface: #FFF9E9;
  --surface-2: #EAD9B8;
  --fg: #2C1A0E;
  --fg-soft: #4C3018;
  --muted: rgba(44, 26, 14, .62);
  --border: rgba(44, 26, 14, .14);
  --accent: #8B5E3C;
  --accent-ink: #FFF9E9;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); }
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}


@supports (height: 100svh) {
  html, body { height: 100svh; }
  .app { min-height: 100svh; }
}

body[data-tv-app="standalone"] {
  contain: layout style paint;
}

.app {
  position: fixed;
  inset: 0;
  min-width: 320px;
  display: grid;
  grid-template-rows: var(--bar-h) 1fr 28px;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 20% -10%, rgba(212,169,106,.14), transparent 58%),
    radial-gradient(740px 580px at 110% 20%, rgba(139,94,60,.18), transparent 58%),
    var(--bg);
  isolation: isolate;
  --tv-time: 0;
  --tv-drift-x: 0px;
  --tv-drift-y: 0px;
  --tv-glow-x: 50%;
  --tv-glow-y: 20%;
}

.bar {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: max(8px, env(safe-area-inset-top)) 24px 8px;
  min-height: var(--bar-h);
  background: rgba(26, 15, 6, .76);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.brand-dot {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: rgba(26, 15, 6, .64);
  box-shadow:
    0 0 0 1px rgba(245,237,214,.18),
    0 10px 28px rgba(212,169,106,.24),
    inset 0 0 0 1px rgba(212,169,106,.28);
  animation: breathe 3.8s ease-in-out infinite;
  will-change: transform;
}
.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: translateZ(0);
  backface-visibility: hidden;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.9); }
}
.brand-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-nav { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; }
.cat-pip {
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(245,237,214,.22);
  appearance: none;
  cursor: pointer;
  transition: width .45s cubic-bezier(.2,.8,.2,1), background .25s, transform .25s;
}
.cat-pip.active { width: 24px; background: var(--accent); }
.cat-pip:active { transform: scale(.86); }
.cat-label {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-7px);
  transition: opacity .36s ease, transform .36s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}
.cat-label.visible { opacity: 1; transform: translateX(0); }

.clock { text-align: right; user-select: none; }
.clock-time {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.clock-date {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .10em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.clock-hours {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.15;
  letter-spacing: .075em;
  color: rgba(245,237,214,.58);
  text-transform: uppercase;
  white-space: nowrap;
}

.stage {
  position: relative;
  z-index: 10;
  min-height: 0;
  display: grid;
  grid-template-rows: 41.5% 58.5%;
  overflow: hidden;
  position: relative;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px 36px 28px;
  min-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background: #1A0F06;
}
.hero-bg,
.hero-photo-layer,
.hero-gradient,
.hero-grain { position: absolute; inset: 0; pointer-events: none; }
.hero-bg {
  background: radial-gradient(ellipse 120% 100% at 80% 56%, rgba(139,94,60,.34), rgba(26,15,6,.96) 72%);
  z-index: 0;
}
.hero-photo-layer {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.026);
  transition: opacity .72s ease, transform 8.8s linear;
  z-index: 1;
  will-change: opacity, transform;
}
.hero-photo-layer.is-on { opacity: .90; transform: scale(1.09); }
.hero-gradient {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(26,15,6,.65) 0%, rgba(26,15,6,.40) 38%, rgba(26,15,6,.10) 72%, rgba(26,15,6,.42) 100%),
    linear-gradient(to top, rgba(26,15,6,.82), transparent 52%);
}
.hero-grain {
  z-index: 3;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  z-index: 4;
  background: linear-gradient(to bottom, transparent, rgba(26,15,6,.60));
  pointer-events: none;
}
.hero-content { position: relative; z-index: 5; max-width: min(620px, 76vw); }
.hero-eyebrow,
.hero-name,
.hero-desc,
.hero-price,
.hero-tags {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .54s ease, transform .54s cubic-bezier(.2,.8,.2,1);
}
.hero-eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  transition-delay: .08s;
}
.hero-name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 74px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--cream);
  text-wrap: balance;
  transition-delay: .16s;
}
.hero-desc {
  max-width: 450px;
  margin-bottom: 12px;
  color: rgba(245,237,214,.82);
  font-size: 14px;
  line-height: 1.52;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition-delay: .24s;
}
.hero-price {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(25px, 4.6vw, 44px);
  font-weight: 900;
  letter-spacing: -.035em;
  transition-delay: .30s;
}
.hero-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
  transition-delay: .38s;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid rgba(245,237,214,.22);
  color: rgba(245,237,214,.84);
  background: rgba(26,15,6,.24);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag.hot { border-color: rgba(212,169,106,.46); color: var(--accent); }
.hero.is-in .hero-eyebrow,
.hero.is-in .hero-name,
.hero.is-in .hero-desc,
.hero.is-in .hero-price,
.hero.is-in .hero-tags { opacity: 1; transform: translateY(0); }

.cards {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  padding: 1px;
  background: var(--border);
  overflow: hidden;
}
.pcard {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  color: var(--cream);
  background: #22140A;
  isolation: isolate;
  opacity: 0;
  transform: translateY(18px) scale(.992);
  transition: opacity .48s ease, transform .58s cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity;
}
.pcard.is-in { opacity: 1; transform: translateY(0) scale(1); }
.pcard:nth-child(1) { transition-delay: .04s; }
.pcard:nth-child(2) { transition-delay: .10s; }
.pcard:nth-child(3) { transition-delay: .16s; }
.pcard:nth-child(4) { transition-delay: .22s; }
.pcard-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.018);
  transition: transform 8.6s linear, filter .38s ease, opacity .38s ease;
  opacity: .95;
}
.pcard.is-in .pcard-photo { transform: scale(1.075); }
.pcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(18,10,4,.94) 0%, rgba(18,10,4,.72) 34%, rgba(18,10,4,.10) 70%),
    linear-gradient(120deg, rgba(212,169,106,.13), transparent 48%);
}
.pcard::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(245,237,214,.13);
  border-radius: 16px;
  pointer-events: none;
  opacity: .78;
}
.pcard.featured::after { border-color: rgba(212,169,106,.42); box-shadow: inset 0 0 0 1px rgba(212,169,106,.12); }
.pcard-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 42%;
  padding: 18px 20px 17px;
}
.pcard-eyebrow {
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard-name {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.7vw, 25px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.018em;
  color: var(--cream);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.pcard-desc {
  color: rgba(245,237,214,.72);
  font-size: 12px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px 18px;
}
.pcard-tags { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; }
.pcard-tags .tag { font-size: 8px; padding: 3px 6px; min-height: 18px; background: rgba(0,0,0,.18); }
.pcard-price {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 900;
  letter-spacing: -.025em;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hot-pip,
.mix-pip {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212,169,106,.38);
  background: rgba(26,15,6,.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.mix-pip { left: 18px; right: auto; color: rgba(245,237,214,.86); border-color: rgba(245,237,214,.22); }

.pcard.no-photo {
  background:
    radial-gradient(260px 220px at 80% 18%, rgba(212,169,106,.20), transparent 58%),
    radial-gradient(220px 180px at 18% 80%, rgba(139,94,60,.22), transparent 60%),
    linear-gradient(135deg, #22140A, #1A0F06);
}
.pcard.no-photo::before {
  background:
    linear-gradient(to top, rgba(18,10,4,.92) 0%, rgba(18,10,4,.58) 44%, rgba(18,10,4,.08) 100%),
    repeating-linear-gradient(135deg, rgba(245,237,214,.05) 0 1px, transparent 1px 13px);
}

.display-foot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 38%) auto;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  background: rgba(26,15,6,.90);
  border-top: 1px solid rgba(245,237,214,.09);
  z-index: 22;
}
.foot-meta,
.foot-page {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foot-page { text-align: right; }
.progress-track { height: var(--progress-h); overflow: hidden; border-radius: 999px; background: rgba(245,237,214,.16); }
.progress-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #F0D9AA); }
.progress-fill.running { animation: prog 9s linear forwards; }
@keyframes prog { from { width: 0%; } to { width: 100%; } }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--bg);
  opacity: 0;
  transition: opacity .22s ease;
}
.overlay.on { opacity: .45; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--bg); color: var(--fg); z-index: 200; }

/* Primary hardware: Poco Pad M1 / Android tablet portrait ~800x1200 */
@media (min-width: 700px) and (max-width: 980px) and (orientation: portrait) {
  :root { --bar-h: 68px; }
  .app { grid-template-rows: var(--bar-h) 1fr 30px; }
  .bar { padding-left: 28px; padding-right: 28px; }
  .stage { grid-template-rows: 41.5% 58.5%; }
  .hero { padding: 32px 38px 30px; }
  .hero-content { max-width: 650px; }
  .hero-name { font-size: clamp(50px, 7.3vw, 68px); }
  .hero-desc { font-size: 15px; max-width: 520px; }
  .hero-price { font-size: clamp(31px, 4.8vw, 42px); }
  .pcard-copy { min-height: 41%; padding: 20px 22px 13px; }
  .pcard-footer { padding: 0 22px 20px; }
  .pcard-name { font-size: clamp(21px, 3vw, 26px); }
  .pcard-desc { font-size: 12.5px; -webkit-line-clamp: 2; }
  .pcard-price { font-size: clamp(18px, 2.5vw, 23px); }
}

@media (min-width: 1024px) and (orientation: landscape) {
  :root { --bar-h: 72px; }
  .app { grid-template-rows: var(--bar-h) 1fr 32px; }
  .stage { grid-template-rows: 1fr; grid-template-columns: 3fr 2fr; }
  .hero { padding: 56px 64px; }
  .hero::after { display: none; }
  .hero-content { max-width: 620px; }
  .hero-name { font-size: clamp(56px, 5.7vw, 94px); }
  .hero-desc { max-width: 560px; font-size: 15px; }
  .cards { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .pcard-copy { padding: 20px 22px 18px; min-height: 39%; }
  .pcard-name { font-size: clamp(18px, 1.8vw, 26px); }
}

@media (min-width: 1600px) {
  :root { --bar-h: 80px; }
  .bar { padding-left: 48px; padding-right: 48px; }
  .brand-dot { width: 50px; height: 50px; }
  .brand-name { font-size: 21px; }
  .hero { padding: 72px 88px; }
  .hero-name { font-size: clamp(68px, 5.8vw, 106px); }
  .hero-desc { font-size: 18px; max-width: 660px; -webkit-line-clamp: 3; }
  .pcard-copy { padding: 30px 34px 22px; }
  .pcard-footer { padding: 0 34px 28px; }
  .pcard-name { font-size: clamp(22px, 1.7vw, 32px); }
  .pcard-desc { font-size: 14px; -webkit-line-clamp: 3; }
  .pcard-price { font-size: clamp(20px, 1.5vw, 28px); }
}

@media (max-width: 520px) {
  :root { --bar-h: 58px; }
  .app { grid-template-rows: var(--bar-h) 1fr 24px; }
  .bar { grid-template-columns: auto 1fr auto; gap: 11px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .brand-dot { width: 34px; height: 34px; }
  .brand-name { font-size: 15px; max-width: 120px; }
  .brand-sub { display: none; }
  .cat-nav { gap: 5px; }
  .cat-label { display: none; }
  .clock-time { font-size: 16px; }
  .clock-date { display: none; }
  .clock-hours { margin-top: 2px; font-size: 7px; letter-spacing: .04em; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
  .stage { grid-template-rows: 38% 62%; }
  .hero { padding: 20px 20px 16px; }
  .hero-content { max-width: 88vw; }
  .hero-name { font-size: clamp(31px, 8.5vw, 48px); }
  .hero-price { font-size: clamp(20px, 5.8vw, 30px); }
  .hero-desc { font-size: 12px; -webkit-line-clamp: 2; }
  .pcard-copy { padding: 13px 14px 10px; min-height: 44%; }
  .pcard-footer { padding: 0 14px 12px; align-items: flex-end; }
  .pcard-name { font-size: 14.5px; -webkit-line-clamp: 2; }
  .pcard-desc { display: none; }
  .pcard-price { font-size: 13px; }
  .pcard-tags .tag:nth-child(n+2) { display: none; }
  .hot-pip, .mix-pip { top: 12px; right: 12px; font-size: 7px; padding: 3px 6px; }
  .mix-pip { left: 12px; right: auto; }
  .display-foot { padding: 0 14px; gap: 8px; grid-template-columns: minmax(0, 1fr) 40% auto; }
  .foot-meta { display: none; }
}

@media (max-height: 760px) and (orientation: portrait) {
  .stage { grid-template-rows: 36% 64%; }
  .hero { padding-top: 18px; padding-bottom: 16px; }
  .hero-desc { display: none; }
  .hero-tags .tag:nth-child(n+3) { display: none; }
}

html.perf-low .hero-photo-layer,
html.perf-low .pcard-photo { transition-duration: .6s; transform: scale(1.01); }
html.perf-low .pcard.is-in .pcard-photo { transform: scale(1.025); }
html.perf-low .hero-photo-layer.is-on { transform: scale(1.035); }
html.perf-low .bar,
html.perf-low .hot-pip,
html.perf-low .mix-pip { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* TV display: prefers-reduced-motion IGNORADO — full motion siempre activo.
   El bloque original que mataba animaciones con .001ms !important fue neutralizado.
   Si necesitás restarlo algún día, descomentá el bloque de abajo.
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .hero-photo-layer, .pcard-photo, .pcard, .hero-eyebrow, .hero-name, .hero-desc, .hero-price, .hero-tags { transform: none !important; }
  .progress-fill.running { width: 100%; }
}
*/
@media (prefers-reduced-motion: reduce) {
  /* Override: TV app ignora la preferencia del OS, las animaciones siguen corriendo */
  *, *::before, *::after { animation-duration: revert !important; animation-iteration-count: revert !important; transition-duration: revert !important; }
}


/* =====================================================================
   v5.8.4 · Rich Motion / Artifacts layer
   Compositor-only: transform + opacity. Enabled mainly on perf-mid/high.
   ===================================================================== */
.tv-artifacts {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  opacity: .92;
  contain: layout style paint;
}
.tv-artifact {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate3d(0,0,0);
}
.tv-orb {
  width: 38vmax;
  height: 38vmax;
  border-radius: 999px;
  opacity: .17;
  background:
    radial-gradient(circle at 38% 38%, rgba(240,217,170,.75), rgba(212,169,106,.22) 33%, rgba(139,94,60,.08) 58%, transparent 72%);
  transform: translate3d(calc(-16% + var(--tv-drift-x)), calc(-34% + var(--tv-drift-y)), 0) scale(1);
  animation: tv-orb-float-a 18s cubic-bezier(.36,0,.24,1) infinite alternate;
}
.tv-orb--b {
  right: -19vmax;
  bottom: 12%;
  width: 30vmax;
  height: 30vmax;
  opacity: .13;
  background:
    radial-gradient(circle at 50% 50%, rgba(245,237,214,.45), rgba(212,169,106,.16) 36%, rgba(44,26,14,.10) 60%, transparent 73%);
  animation: tv-orb-float-b 22s cubic-bezier(.36,0,.24,1) infinite alternate;
}
.tv-orb--c {
  left: 16%;
  bottom: -21vmax;
  width: 26vmax;
  height: 26vmax;
  opacity: .12;
  background:
    radial-gradient(circle at 50% 50%, rgba(139,94,60,.50), rgba(212,169,106,.18) 42%, transparent 73%);
  animation: tv-orb-float-c 26s cubic-bezier(.36,0,.24,1) infinite alternate;
}
.tv-ring {
  width: 32vmax;
  height: 32vmax;
  right: -9vmax;
  top: 11%;
  border-radius: 999px;
  border: 1px solid rgba(245,237,214,.085);
  box-shadow: inset 0 0 0 1px rgba(212,169,106,.05);
  opacity: .55;
  animation: tv-ring-drift 24s linear infinite;
}
.tv-ring::before,
.tv-ring::after {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: inherit;
  border: 1px solid rgba(212,169,106,.075);
}
.tv-ring::after { inset: 30%; opacity: .76; }
.tv-beam {
  left: -32%;
  top: 8%;
  width: 72%;
  height: 160%;
  opacity: .09;
  background: linear-gradient(112deg, transparent 0%, rgba(245,237,214,.18) 42%, rgba(212,169,106,.12) 48%, transparent 58%);
  transform: translate3d(-8%, -18%, 0) rotate(8deg);
  animation: tv-beam-sweep 13s cubic-bezier(.16,.84,.24,1) infinite;
}
.tv-scan {
  inset: 0;
  opacity: .045;
  background:
    repeating-linear-gradient(to bottom, rgba(245,237,214,.16) 0 1px, transparent 1px 7px);
  transform: translate3d(0, calc(var(--tv-drift-y) * .16), 0);
  mix-blend-mode: screen;
}
.tv-spark {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(240,217,170,.80);
  box-shadow: 0 0 18px rgba(240,217,170,.50);
  opacity: .0;
  animation: tv-spark-rise 8s ease-in-out infinite;
}
.tv-spark--a { left: 14%; bottom: 18%; animation-delay: .2s; }
.tv-spark--b { left: 69%; bottom: 24%; animation-delay: 2.4s; transform: scale(.72); }
.tv-spark--c { left: 84%; bottom: 58%; animation-delay: 4.7s; transform: scale(.58); }

html:not(.motion-rich) .tv-artifacts { display: none; }
html.perf-low .tv-artifacts,
html[data-reduced-motion="true"] .tv-artifacts { display: none !important; }

html.motion-rich .app::before,
html.motion-rich .app::after {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--tv-glow-x) var(--tv-glow-y), rgba(240,217,170,.12), transparent 24%),
    radial-gradient(circle at calc(100% - var(--tv-glow-x)) 78%, rgba(139,94,60,.10), transparent 28%);
  opacity: .82;
  transform: translate3d(calc(var(--tv-drift-x) * .16), calc(var(--tv-drift-y) * .16), 0);
}
html.motion-rich .app::after {
  opacity: .24;
  background: linear-gradient(120deg, transparent 28%, rgba(245,237,214,.10) 48%, transparent 66%);
  transform: translate3d(calc(-22% + var(--tv-drift-x) * .28), 0, 0) rotate(0deg);
  animation: tv-app-sheen 10s cubic-bezier(.2,.8,.2,1) infinite;
}

/* richer hero movement */
html.motion-rich .hero-photo-layer {
  transition: opacity .62s ease, transform 9s linear;
}
html.motion-rich .hero-photo-layer.is-on {
  opacity: .58;
  transform: translate3d(calc(var(--tv-drift-x) * -.18), calc(var(--tv-drift-y) * -.12), 0) scale(1.112);
}
html.motion-max .hero-photo-layer.is-on {
  opacity: .62;
  transform: translate3d(calc(var(--tv-drift-x) * -.22), calc(var(--tv-drift-y) * -.16), 0) scale(1.13);
}
html.motion-rich .hero-content {
  transform: translate3d(calc(var(--tv-drift-x) * .05), calc(var(--tv-drift-y) * .04), 0);
  will-change: transform;
}
html.motion-rich .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: .24;
  background: linear-gradient(115deg, transparent 18%, rgba(245,237,214,.10) 44%, transparent 62%);
  transform: translate3d(-110%, 0, 0);
  animation: tv-hero-sweep 8.5s cubic-bezier(.2,.8,.2,1) infinite;
}

/* rich full-photo cards */
html.motion-rich .pcard {
  transition: opacity .42s ease, transform .72s cubic-bezier(.18,.88,.22,1.05), box-shadow .5s ease;
  transform: translate3d(0, 22px, 0) scale(.986);
}
html.motion-rich .pcard.is-in {
  transform: translate3d(calc(var(--tv-drift-x) * .025), calc(var(--tv-drift-y) * .018), 0) scale(1);
}
html.motion-rich .pcard-photo {
  transition: transform 10.8s linear, opacity .38s ease;
  transform: translate3d(0, 0, 0) scale(1.022);
  will-change: transform, opacity;
}
html.motion-rich .pcard.is-in .pcard-photo {
  transform: translate3d(calc(var(--tv-drift-x) * -.10), calc(var(--tv-drift-y) * -.08), 0) scale(1.115);
}
html.motion-max .pcard.is-in .pcard-photo {
  transform: translate3d(calc(var(--tv-drift-x) * -.14), calc(var(--tv-drift-y) * -.10), 0) scale(1.135);
}
.pcard-sheen {
  position: absolute;
  inset: -35% -60%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.16) 48%, rgba(240,217,170,.16) 52%, transparent 66%);
  transform: translate3d(-34%, 0, 0) rotate(2deg);
  will-change: transform, opacity;
}
html.motion-rich .pcard.is-in .pcard-sheen {
  animation: tv-card-sheen 7.8s cubic-bezier(.16,.84,.24,1) infinite;
}
html.motion-rich .pcard:nth-child(2) .pcard-sheen { animation-delay: 1.2s; }
html.motion-rich .pcard:nth-child(3) .pcard-sheen { animation-delay: 2.4s; }
html.motion-rich .pcard:nth-child(4) .pcard-sheen { animation-delay: 3.6s; }
html.motion-rich .pcard::after {
  opacity: .95;
  box-shadow: inset 0 0 0 1px rgba(245,237,214,.045), 0 0 24px rgba(212,169,106,.045);
}
html.motion-rich .pcard-copy,
html.motion-rich .pcard-footer,
html.motion-rich .hero-content,
html.motion-rich .bar,
html.motion-rich .display-foot { backface-visibility: hidden; transform-style: preserve-3d; }

/* progress shimmer */
html.motion-rich .progress-fill {
  position: relative;
  overflow: hidden;
}
html.motion-rich .progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent);
  transform: translate3d(-110%,0,0);
  animation: tv-progress-glint 2.4s ease-in-out infinite;
}

/* transition energy */
html.motion-rich .app.is-tv-transitioning .tv-artifacts { opacity: 1; }
html.motion-rich .app.is-tv-transitioning .tv-ring { animation-duration: 8s; }
html.motion-rich .app.is-tv-transitioning .tv-beam { animation-duration: 2.6s; }
html.motion-rich .app.is-tv-settled .tv-artifacts { opacity: .82; transition: opacity .6s ease; }

@keyframes tv-orb-float-a {
  0% { transform: translate3d(calc(-16% + var(--tv-drift-x)), calc(-34% + var(--tv-drift-y)), 0) scale(.96); }
  100% { transform: translate3d(calc(8% + var(--tv-drift-x)), calc(-20% + var(--tv-drift-y)), 0) scale(1.06); }
}
@keyframes tv-orb-float-b {
  0% { transform: translate3d(0, 0, 0) scale(.94); }
  100% { transform: translate3d(-7%, -12%, 0) scale(1.04); }
}
@keyframes tv-orb-float-c {
  0% { transform: translate3d(-6%, 0, 0) scale(.96); }
  100% { transform: translate3d(8%, -10%, 0) scale(1.06); }
}
@keyframes tv-ring-drift {
  from { transform: translate3d(calc(var(--tv-drift-x) * .12), calc(var(--tv-drift-y) * .12), 0) rotate(0deg) scale(.98); }
  to { transform: translate3d(calc(var(--tv-drift-x) * .12), calc(var(--tv-drift-y) * .12), 0) rotate(360deg) scale(1.02); }
}
@keyframes tv-beam-sweep {
  0%, 42% { transform: translate3d(-52%, -18%, 0) rotate(8deg); opacity: 0; }
  54% { opacity: .13; }
  74% { opacity: .08; }
  100% { transform: translate3d(170%, -18%, 0) rotate(8deg); opacity: 0; }
}
@keyframes tv-spark-rise {
  0%, 16% { opacity: 0; transform: translate3d(0, 0, 0) scale(.55); }
  28% { opacity: .86; }
  78% { opacity: .10; }
  100% { opacity: 0; transform: translate3d(22px, -74px, 0) scale(1.16); }
}
@keyframes tv-app-sheen {
  0%, 45% { transform: translate3d(-60%,0,0) rotate(0deg); opacity: 0; }
  58% { opacity: .30; }
  100% { transform: translate3d(68%,0,0) rotate(0deg); opacity: 0; }
}
@keyframes tv-hero-sweep {
  0%, 38% { transform: translate3d(-110%,0,0); opacity: 0; }
  50% { opacity: .26; }
  100% { transform: translate3d(110%,0,0); opacity: 0; }
}
@keyframes tv-card-sheen {
  0%, 52% { opacity: 0; transform: translate3d(-42%,0,0) rotate(2deg); }
  62% { opacity: .28; }
  84% { opacity: .08; }
  100% { opacity: 0; transform: translate3d(42%,0,0) rotate(2deg); }
}
@keyframes tv-progress-glint {
  0% { transform: translate3d(-110%,0,0); }
  100% { transform: translate3d(110%,0,0); }
}

@media (min-width: 1600px) {
  html.motion-rich .tv-orb { opacity: .20; }
  html.motion-rich .tv-beam { opacity: .12; }
  html.motion-rich .pcard.is-in .pcard-photo { transform: translate3d(calc(var(--tv-drift-x) * -.16), calc(var(--tv-drift-y) * -.12), 0) scale(1.145); }
}

@media (prefers-reduced-motion: reduce) {
  .tv-artifacts, .pcard-sheen { display: none !important; }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: .052;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: screen;
}
.hero-brand-mark {
  position: absolute;
  z-index: 5;
  right: clamp(20px, 5vw, 70px);
  top: clamp(22px, 5vw, 80px);
  width: clamp(78px, 18vw, 190px);
  aspect-ratio: 1;
  object-fit: contain;
  opacity: .13;
  pointer-events: none;
  filter: drop-shadow(0 18px 42px rgba(0,0,0,.38));
  transform: translate3d(calc(var(--tv-drift-x) * .25), calc(var(--tv-drift-y) * .18), 0) rotate(-4deg) scale(1.01);
  transition: opacity .45s ease, transform .7s cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity;
}
.motion-rich .hero-brand-mark { opacity: .18; }
.motion-max .hero-brand-mark { opacity: .23; }
